summaryrefslogtreecommitdiff
path: root/tests/server-test.c
diff options
context:
space:
mode:
authorPatrick Griffis <pgriffis@igalia.com>2020-10-08 14:25:38 -0500
committerPatrick Griffis <pgriffis@igalia.com>2020-10-08 14:39:42 -0500
commit8ba30160e7caf956a3a71519db14954324075a07 (patch)
tree5d4f26040e0ec620758511b4d2dfe425495a9b72 /tests/server-test.c
parentbe7faf62034d818246910eee4455503fd6fcb99c (diff)
downloadlibsoup-8ba30160e7caf956a3a71519db14954324075a07.tar.gz
server-test: Handle do_fd_import_test() being flaky
Diffstat (limited to 'tests/server-test.c')
-rw-r--r--tests/server-test.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/server-test.c b/tests/server-test.c
index 461aef21..38716ffc 100644
--- a/tests/server-test.c
+++ b/tests/server-test.c
@@ -711,11 +711,9 @@ do_fd_import_test (void)
soup_uri_free (uri);
soup_test_server_quit_unref (server);
- /* @server should have closed our socket, although @gsock doesn't
- * know this.
- */
+ /* @server should have closed our socket, note the specific error isn't reliable */
g_socket_get_option (gsock, SOL_SOCKET, SO_TYPE, &type, &error);
- g_assert_error (error, G_IO_ERROR, G_IO_ERROR_FAILED);
+ g_assert_nonnull (error);
g_clear_error (&error);
g_object_unref (gsock);
}