[libsoup] server-test: Handle do_fd_import_test() being flaky
- From: Patrick Griffis <pgriffis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] server-test: Handle do_fd_import_test() being flaky
- Date: Thu, 8 Oct 2020 19:39:48 +0000 (UTC)
commit 8ba30160e7caf956a3a71519db14954324075a07
Author: Patrick Griffis <pgriffis igalia com>
Date: Thu Oct 8 14:25:38 2020 -0500
server-test: Handle do_fd_import_test() being flaky
tests/server-test.c | 6 ++----
1 file 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]