summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Catanzaro <mcatanzaro@igalia.com>2019-05-14 20:42:58 -0500
committerMichael Catanzaro <mcatanzaro@posteo.net>2019-05-15 14:02:31 +0000
commitc48671bb7b6be86e0c20700fdf3d895ab04a13d7 (patch)
treea9d0e46708ddbc981756b7dfa6552c7d13d6e3ab
parentec1febd5967c79a6002a3444538f270194db9902 (diff)
downloadglib-networking-c48671bb7b6be86e0c20700fdf3d895ab04a13d7.tar.gz
tests: Simplify on_server_close_finish
Back to the way it was before....
-rw-r--r--tls/tests/connection.c11
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;
}