From 890b2daeab368815e1aaf5074b5b6a28fbe3a90f Mon Sep 17 00:00:00 2001 From: Xavi Garcia Mena Date: Mon, 26 Oct 2015 14:34:07 +0100 Subject: changed wait mechanism when stopping sound --- tests/integration/test-indicator.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/integration/test-indicator.cpp b/tests/integration/test-indicator.cpp index d55222b..d6f5c55 100644 --- a/tests/integration/test-indicator.cpp +++ b/tests/integration/test-indicator.cpp @@ -104,14 +104,15 @@ TEST_F(TestIndicator, PhoneChangeRoleVolume) ) ).match()); + // initialize the signal spy + EXPECT_TRUE(initializeMenuChangedSignal()); userAccountsSpy.clear(); // stop the test sound, the role should change again to alert stopTestSound(); if (randomVolume != 1.0) { - // we only wait if the volume in the alert and the - // one set in the multimedia roles differ - WAIT_FOR_SIGNALS(userAccountsSpy, 1); + // wait for the menu change + EXPECT_TRUE(waitMenuChange()); } // check the initial volume for the alert role -- cgit v1.2.3