Skip to content
Snippets Groups Projects
Commit f53e07bb authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Testsuite [SSL]: Fixed some erroneous failures.

parent 3d18dc03
Branches
Tags
No related merge requests found
......@@ -733,7 +733,7 @@ test_do([[
// NB: Client doesn't close connection before all data has
// been returned, so we can't just use read(1024) here.
if (!server->is_open()) {
return "Server connection was closed.\n";
return exp_data && "Server connection was closed.\n";
}
string data = server->read(min(1024, bytes));
if (!data) {
......@@ -769,7 +769,7 @@ test_do([[
Thread.Thread sender_thread =
Thread.Thread(lambda() {
if (!client->is_open()) {
return "Client connection was closed.\n";
return exp_data && "Client connection was closed.\n";
}
int bytes = client->write(client_msg);
if (bytes == sizeof(client_msg)) return 0;
......@@ -779,7 +779,7 @@ test_do([[
Thread.Thread reader_thread =
Thread.Thread(lambda() {
if (!client->is_open()) {
return "Client connection was closed.\n";
return exp_data && "Client connection was closed.\n";
}
string recv = client->read(sizeof(client_msg));
client->close();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment