summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlli Salli <ollisal@gmail.com>2011-01-01 20:40:31 +0200
committerOlli Salli <ollisal@gmail.com>2011-01-01 20:40:31 +0200
commitcba954bb2215de9412deddae44e380f7efb9ae5e (patch)
tree2f1c6d225b273f0d507eb7df9500ec12e183707c
parent606b622176e736b3715215e01513b0f49f2808a3 (diff)
Guard against leaking events between tests in TestChanGroup
-rw-r--r--tests/dbus/chan-group.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/dbus/chan-group.cpp b/tests/dbus/chan-group.cpp
index 27d88d46..3621c3c2 100644
--- a/tests/dbus/chan-group.cpp
+++ b/tests/dbus/chan-group.cpp
@@ -508,6 +508,11 @@ void TestChanGroup::cleanup()
mChanService = 0;
}
+ // Avoid D-Bus event leak from one test case to another - I've seen this with the
+ // testCreateChannel groupMembersChanged leaking at least
+ processDBusQueue(mConn.data());
+ mChan.reset();
+
cleanupImpl();
}