fix linux tests

This commit is contained in:
Andrei Yankovich 2021-04-02 17:34:51 +03:00
parent 6afa7075fb
commit 4a447a16fb

View File

@ -60,6 +60,10 @@ void SingleServerTest::loginTest() {
return client->login(user);
};
auto logout = [client]() {
return client->logout();
};
auto sigupRequest = [client, &user, &userPassword]() {
return client->signup(user, userPassword);
};
@ -138,7 +142,7 @@ void SingleServerTest::loginTest() {
QVERIFY(funcPrivateConnect(sigupRequest, checkLoginedStatus));
// logout client and try login again.
QVERIFY(client->logout());
QVERIFY(funcPrivateConnect(logout, checkConnectedStatus));
// waiting of the reflection of the server. This needed because server do not responce about successful logout.
wait([](){return false;}, 500);
@ -162,7 +166,7 @@ void SingleServerTest::loginTest() {
QVERIFY(funcPrivateConnect(loginRequestUsesToken, checkLoginedStatus));
// logout client and try login again.
QVERIFY(client->logout());
QVERIFY(funcPrivateConnect(logout, checkConnectedStatus));
// waiting of the reflection of the server. This needed because server do not responce about successful logout.
wait([](){return false;}, 500);