diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2016-09-22 16:30:07 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2016-09-22 16:30:07 -0500 |
commit | b7c135151300dee6d6cb433cd9df989d4f04935f (patch) | |
tree | 89e6097c31e509ddf5948280e2ec35fe4e670fb3 /tests/unit/usb-snap-test.cpp | |
parent | fe6fe0ae1e87d46c6060045cc3b25865df4533bd (diff) | |
parent | 403fd0a388e565daf195729d9211ff03c23c93a0 (diff) | |
download | ayatana-indicator-display-b7c135151300dee6d6cb433cd9df989d4f04935f.tar.gz ayatana-indicator-display-b7c135151300dee6d6cb433cd9df989d4f04935f.tar.bz2 ayatana-indicator-display-b7c135151300dee6d6cb433cd9df989d4f04935f.zip |
sync with lp:~charlesk/indicator-display/lp-1572545-prompt-in-lockscreen
Diffstat (limited to 'tests/unit/usb-snap-test.cpp')
-rw-r--r-- | tests/unit/usb-snap-test.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/tests/unit/usb-snap-test.cpp b/tests/unit/usb-snap-test.cpp index 53548f4..2be4b27 100644 --- a/tests/unit/usb-snap-test.cpp +++ b/tests/unit/usb-snap-test.cpp @@ -130,15 +130,9 @@ TEST_F(UsbSnapFixture, TestRoundTrip) EXPECT_TRUE(user_response_set); ASSERT_EQ(test.expected_response, user_response); - // confirm that the snap dtor cleans up the notification - connection.disconnect(); + // confirm that the snap dtor doesn't try to close + // the notification that's already been closed by user choice snap.reset(); - wait_for_signals(notificationsSpy, 1); - { - QVariantList const& call(notificationsSpy.at(0)); - EXPECT_EQ("CloseNotification", call.at(0)); - QVariantList const& args(call.at(1).toList()); - EXPECT_EQ(id, args.at(0)); - } + EXPECT_FALSE(notificationsSpy.wait(1000)); } } |