Skip to content

Commit 6ab7b93

Browse files
Formatting code
1 parent 3f11b2b commit 6ab7b93

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

app/test/testmerginapi.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2502,7 +2502,7 @@ void TestMerginApi::testCreateWorkspace()
25022502
// we need to register new user for tests and assign its credentials to env vars
25032503
QString password = TestUtils::generatePassword();
25042504
QString email = TestUtils::generateEmail();
2505-
QString username = email.left(email.lastIndexOf('@'));
2505+
QString username = email.left( email.lastIndexOf( '@' ) );
25062506

25072507
qDebug() << "REGISTERING NEW TEST USER WITH EMAIL:" << email;
25082508

app/test/testutils.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,13 @@ bool TestUtils::needsToAuthorizeAgain( MerginApi *api, const QString &username )
120120

121121
QString TestUtils::generateEmail()
122122
{
123-
#ifdef Q_OS_MACOS
124-
QString ciId = "mc";
125-
#elif Q_OS_LINUX
126-
QString ciId = "lx";
127-
#else
123+
#ifdef Q_OS_MACOS
124+
QString ciId = "m";
125+
#elif Q_OS_LINUX
126+
QString ciId = "l";
127+
#else
128128
QString ciId = "";
129-
#endif
129+
#endif
130130
QString prefix = ciId.isEmpty() ? QStringLiteral( "mobile" ) : QStringLiteral( "%1" ).arg( ciId );
131131
QDateTime time = QDateTime::currentDateTime();
132132
QString uniqename = time.toString( QStringLiteral( "ddMMyy-hhmmss-z" ) );
@@ -144,7 +144,7 @@ void TestUtils::generateRandomUser( MerginApi *api, QString &username, QString &
144144
// generate the test run-specific user details
145145
QString email = generateEmail();
146146
password = generatePassword();
147-
username = email.left(email.lastIndexOf('@'));
147+
username = email.left( email.lastIndexOf( '@' ) );
148148

149149
// create the account for the test run user
150150
api->clearAuth();

0 commit comments

Comments
 (0)