mirror of
https://github.com/QuasarApp/Heart.git
synced 2025-04-27 18:24:38 +00:00
fix linux tests
This commit is contained in:
parent
6afa7075fb
commit
4a447a16fb
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user