diff options
author | Michael Catanzaro <mcatanzaro@igalia.com> | 2019-05-14 21:32:27 -0500 |
---|---|---|
committer | Michael Catanzaro <mcatanzaro@posteo.net> | 2019-05-15 14:02:31 +0000 |
commit | 598931d7ce91920367c110c9012f14d3564be14b (patch) | |
tree | 78af4385c485c22b5561d0690083d580c1fb0953 | |
parent | 6ad99a3636517271cd6cdaee20967efbbd85d1f0 (diff) | |
download | glib-networking-598931d7ce91920367c110c9012f14d3564be14b.tar.gz |
tests: Remove expected_client_closed_error
This is now unused.
-rw-r--r-- | tls/tests/connection.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/tls/tests/connection.c b/tls/tests/connection.c index 7534036..5379a2a 100644 --- a/tls/tests/connection.c +++ b/tls/tests/connection.c @@ -77,7 +77,6 @@ typedef struct { GTlsAuthenticationMode auth_mode; gboolean rehandshake; GTlsCertificateFlags accept_flags; - GError *expected_client_close_error; GError *read_error; GError *expected_server_error; GError *server_error; @@ -159,7 +158,6 @@ teardown_connection (TestConnection *test, gconstpointer data) g_main_loop_unref (test->loop); - g_clear_error (&test->expected_client_close_error); g_clear_error (&test->read_error); g_clear_error (&test->server_error); g_clear_error (&test->expected_server_error); @@ -455,15 +453,7 @@ on_client_connection_close_finish (GObject *object, GError *error = NULL; g_io_stream_close_finish (G_IO_STREAM (object), res, &error); - - if (test->expected_client_close_error) - { - g_assert_error (error, test->expected_client_close_error->domain, test->expected_client_close_error->code); - } - else - { - g_assert_no_error (error); - } + g_assert_no_error (error); g_main_loop_quit (test->loop); } @@ -1087,7 +1077,6 @@ test_client_auth_failure (TestConnection *test, g_object_unref (test->client_connection); g_clear_object (&test->server_connection); - g_clear_error (&test->expected_client_close_error); g_clear_error (&test->read_error); g_clear_error (&test->server_error); g_clear_error (&test->expected_server_error); |