diff options
author | Michael Catanzaro <mcatanzaro@igalia.com> | 2019-05-14 20:42:58 -0500 |
---|---|---|
committer | Michael Catanzaro <mcatanzaro@posteo.net> | 2019-05-15 14:02:31 +0000 |
commit | c48671bb7b6be86e0c20700fdf3d895ab04a13d7 (patch) | |
tree | a9d0e46708ddbc981756b7dfa6552c7d13d6e3ab | |
parent | ec1febd5967c79a6002a3444538f270194db9902 (diff) | |
download | glib-networking-c48671bb7b6be86e0c20700fdf3d895ab04a13d7.tar.gz |
tests: Simplify on_server_close_finish
Back to the way it was before....
-rw-r--r-- | tls/tests/connection.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/tls/tests/connection.c b/tls/tests/connection.c index cd7f375..19dc4b2 100644 --- a/tls/tests/connection.c +++ b/tls/tests/connection.c @@ -235,17 +235,12 @@ on_server_close_finish (GObject *object, GError *error = NULL; g_io_stream_close_finish (G_IO_STREAM (object), res, &error); + g_assert_no_error (error); if (expected_error) - { - g_assert_error (test->server_error, expected_error->domain, expected_error->code); - g_assert_no_error (error); - } + g_assert_error (test->server_error, expected_error->domain, expected_error->code); else - { - g_assert_no_error (test->server_error); - g_assert_no_error (error); - } + g_assert_no_error (test->server_error); test->server_running = FALSE; } |