Skip to content

Commit 445ca11

Browse files
committed
fix testCreateWorkspace
1 parent 14e3b47 commit 445ca11

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

app/test/testmerginapi.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2460,10 +2460,11 @@ void TestMerginApi::testCreateWorkspace()
24602460
QSKIP( "testCreateWorkspace requires USE_MM_SERVER_API_KEY" );
24612461
#endif
24622462
// we need to register new user for tests and assign its credentials to env vars
2463+
QString username = TestUtils::generateUsername();
24632464
QString password = TestUtils::generatePassword();
24642465
QString email = TestUtils::generateEmail();
24652466

2466-
qDebug() << "REGISTERING NEW TEST USER:" << email;
2467+
qDebug() << "REGISTERING NEW TEST USER WITH EMAIL:" << email;
24672468

24682469
QSignalSpy spy( mApi, &MerginApi::registrationSucceeded );
24692470
QSignalSpy spy2( mApi, &MerginApi::registrationFailed );
@@ -2482,11 +2483,11 @@ void TestMerginApi::testCreateWorkspace()
24822483

24832484
// we also need to create a workspace for this user
24842485
QSignalSpy wsSpy( mApi, &MerginApi::workspaceCreated );
2485-
mApi->createWorkspace( email );
2486+
mApi->createWorkspace( username );
24862487
QVERIFY( wsSpy.wait( TestUtils::LONG_REPLY ) );
2487-
QCOMPARE( wsSpy.takeFirst().at( 0 ), email );
2488+
QCOMPARE( wsSpy.takeFirst().at( 0 ), username );
24882489

2489-
qDebug() << "CREATED NEW WORKSPACE:" << email;
2490+
qDebug() << "CREATED NEW WORKSPACE:" << username;
24902491

24912492
// call userInfo to set active workspace
24922493
QSignalSpy infoSpy( mApi, &MerginApi::userInfoReplyFinished );

0 commit comments

Comments
 (0)