Commit ab59a8f6 authored by Benjamin Berg's avatar Benjamin Berg

tests: Use g_assert_nonnull rather than testing for != NULL

Just a small code cleanup in the network panel test code.
parent 4f3aec79
......@@ -153,7 +153,7 @@ test_device_add (NetworkPanelFixture *fixture,
device_path = nm_object_get_path (NM_OBJECT (fixture->main_ether));
g_debug("Device added: %s\n", device_path);
g_assert (gtk_test_find_label(fixture->shell, "Wired") != NULL);
g_assert_nonnull (gtk_test_find_label(fixture->shell, "Wired"));
}
static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment