Skip to content

Commit

Permalink
compare user's created project instead of all public projects
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasMizera committed Feb 23, 2022
1 parent c1fc48a commit fe03968
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions app/test/testmerginapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,8 @@ void TestMerginApi::testListProject()
{
QString projectName = "testListProject";

// check that there's no hello world project
QSignalSpy spy0( mApi, &MerginApi::listProjectsFinished );
mApi->listProjects( QString() );
QVERIFY( spy0.wait( TestUtils::SHORT_REPLY ) );
QCOMPARE( spy0.count(), 1 );
MerginProjectsList projects = projectListFromSpy( spy0 );
// check that there's no testListProject
MerginProjectsList projects = getProjectList();

QVERIFY( !_findProjectByName( mUsername, projectName, projects ).isValid() );
QVERIFY( !mApi->localProjectsManager().projectFromMerginName( mUsername, projectName ).isValid() );
Expand All @@ -146,11 +142,7 @@ void TestMerginApi::testListProject()
createRemoteProject( mApiExtra, mUsername, projectName, mTestDataPath + "/" + TEST_PROJECT_NAME + "/" );

// check the project exists on the server
QSignalSpy spy( mApi, &MerginApi::listProjectsFinished );
mApi->listProjects( QString() );
QVERIFY( spy.wait( TestUtils::SHORT_REPLY ) );
QCOMPARE( spy.count(), 1 );
projects = projectListFromSpy( spy );
projects = getProjectList();

QVERIFY( _findProjectByName( mUsername, projectName, projects ).isValid() );

Expand Down

1 comment on commit fe03968

@inputapp-bot
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iOS - version 1.36.220223125008 just submitted!

Please sign in to comment.