cockpit-project/cockpit — pull request #237 by stefwalter (2014-03-04 11:32:34+00:00)
Title: ws: Drain the GMainContext when stopping the MockService

Otherwise references are held by outstanding sounces in the
GMainContext. If a GDBusConnection is leaked then g_test_dbus_down()
will hang for 30 seconds and fail waiting for it to go away.