Skip to content

Commit

Permalink
disable shitty test
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierLDff committed May 5, 2024
1 parent 4e1a71f commit 0d0e357
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions tests/ServerTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ class ServerTests : public ::testing::Test
bool clientSendError = false;
bool serverSendError = false;

// This test suck and is not deterministic
void runFuzzClientDisconnection(quint16 port)
{
server.sendError = serverSendError;
Expand Down Expand Up @@ -104,7 +105,7 @@ class ServerTests : public ::testing::Test
// server.start(port) can be called to listen from every interfaces
server.start("127.0.0.1", port);

client.setWatchdogPeriod(10);
client.setWatchdogPeriod(1);
client.start("127.0.0.1", port);

timer.start(10);
Expand Down Expand Up @@ -165,7 +166,7 @@ TEST_F(ServerTests, echoTestWorkerThreadClientServerDelay)
echoTest(30010);
}

TEST_F(ServerTests, fuzzDisconnectionClientServer)
TEST_F(ServerTests, DISABLED_fuzzDisconnectionClientServer)
{
clientSendError = true;
serverSendError = false;
Expand All @@ -174,7 +175,7 @@ TEST_F(ServerTests, fuzzDisconnectionClientServer)
runFuzzClientDisconnection(30004);
}

TEST_F(ServerTests, fuzzDisconnectionClientServerWorkerThreadClient)
TEST_F(ServerTests, DISABLED_fuzzDisconnectionClientServerWorkerThreadClient)
{
clientSendError = true;
serverSendError = false;
Expand All @@ -183,7 +184,7 @@ TEST_F(ServerTests, fuzzDisconnectionClientServerWorkerThreadClient)
runFuzzClientDisconnection(30004);
}

TEST_F(ServerTests, fuzzDisconnectionClientServerWorkerThreadServer)
TEST_F(ServerTests, DISABLED_fuzzDisconnectionClientServerWorkerThreadServer)
{
clientSendError = true;
serverSendError = false;
Expand All @@ -192,7 +193,7 @@ TEST_F(ServerTests, fuzzDisconnectionClientServerWorkerThreadServer)
runFuzzClientDisconnection(30004);
}

TEST_F(ServerTests, fuzzDisconnectionClientServerWorkerThreadClientServer)
TEST_F(ServerTests, DISABLED_fuzzDisconnectionClientServerWorkerThreadClientServer)
{
clientSendError = true;
serverSendError = false;
Expand All @@ -201,7 +202,7 @@ TEST_F(ServerTests, fuzzDisconnectionClientServerWorkerThreadClientServer)
runFuzzClientDisconnection(30004);
}

TEST_F(ServerTests, fuzzDisconnectionServerClient)
TEST_F(ServerTests, DISABLED_fuzzDisconnectionServerClient)
{
clientSendError = false;
serverSendError = true;
Expand All @@ -210,7 +211,7 @@ TEST_F(ServerTests, fuzzDisconnectionServerClient)
runFuzzClientDisconnection(30004);
}

TEST_F(ServerTests, fuzzDisconnectionServerClientWorkerThreadClient)
TEST_F(ServerTests, DISABLED_fuzzDisconnectionServerClientWorkerThreadClient)
{
clientSendError = false;
serverSendError = true;
Expand All @@ -219,7 +220,7 @@ TEST_F(ServerTests, fuzzDisconnectionServerClientWorkerThreadClient)
runFuzzClientDisconnection(30004);
}

TEST_F(ServerTests, fuzzDisconnectionServerClientWorkerThreadServer)
TEST_F(ServerTests, DISABLED_fuzzDisconnectionServerClientWorkerThreadServer)
{
clientSendError = false;
serverSendError = true;
Expand All @@ -228,7 +229,7 @@ TEST_F(ServerTests, fuzzDisconnectionServerClientWorkerThreadServer)
runFuzzClientDisconnection(30004);
}

TEST_F(ServerTests, fuzzDisconnectionServerClientWorkerThreadClientServer)
TEST_F(ServerTests, DISABLED_fuzzDisconnectionServerClientWorkerThreadClientServer)
{
clientSendError = false;
serverSendError = true;
Expand Down

0 comments on commit 0d0e357

Please sign in to comment.