summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Catanzaro <mcatanzaro@igalia.com>2019-05-14 21:26:43 -0500
committerMichael Catanzaro <mcatanzaro@posteo.net>2019-05-15 14:02:31 +0000
commit6ad99a3636517271cd6cdaee20967efbbd85d1f0 (patch)
tree0598f309682a92f4905dd666119074999c445b6d
parentc48671bb7b6be86e0c20700fdf3d895ab04a13d7 (diff)
downloadglib-networking-6ad99a3636517271cd6cdaee20967efbbd85d1f0.tar.gz
tests: Remove bad assertion from client-auth-failure test
This error needs to be checked when the server is closed. There's a small but significant chance that might not have happened yet at this point. We have already set expected_server_error to ensure the assert happens, so this misplaced check is redundant and it's a simple mistake that it wasn't removed already.
-rw-r--r--tls/tests/connection.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/tls/tests/connection.c b/tls/tests/connection.c
index 19dc4b2..7534036 100644
--- a/tls/tests/connection.c
+++ b/tls/tests/connection.c
@@ -1082,7 +1082,6 @@ test_client_auth_failure (TestConnection *test,
g_main_loop_run (test->loop);
g_assert_error (test->read_error, G_TLS_ERROR, G_TLS_ERROR_CERTIFICATE_REQUIRED);
- g_assert_error (test->server_error, G_TLS_ERROR, G_TLS_ERROR_CERTIFICATE_REQUIRED);
g_assert_true (accepted_changed);