[glib-networking/mcatanzaro/base-rebase: 52/55] tests: Remove bad assertion from client-auth-failure test



commit 6ad99a3636517271cd6cdaee20967efbbd85d1f0
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Tue May 14 21:26:43 2019 -0500

    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.

 tls/tests/connection.c | 1 -
 1 file changed, 1 deletion(-)
---
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);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]