From f3f6b2d7dbdf019a0ccfe8c2f72f882d6337173a Mon Sep 17 00:00:00 2001 From: bigbearzhu Date: Tue, 26 Jun 2012 16:06:39 +1000 Subject: [PATCH] Fixed timeout on waiting for positionChanged event. Change-Id: I894af066073f601e5838dbd47eb92da516c04544 Reviewed-by: Michael Goddard --- tests/auto/unit/qdeclarativeaudio/tst_qdeclarativeaudio.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/auto/unit/qdeclarativeaudio/tst_qdeclarativeaudio.cpp b/tests/auto/unit/qdeclarativeaudio/tst_qdeclarativeaudio.cpp index f2d7afca..f241c8f8 100644 --- a/tests/auto/unit/qdeclarativeaudio/tst_qdeclarativeaudio.cpp +++ b/tests/auto/unit/qdeclarativeaudio/tst_qdeclarativeaudio.cpp @@ -634,7 +634,7 @@ void tst_QDeclarativeAudio::position() connect(&audio, SIGNAL(positionChanged()), &QTestEventLoop::instance(), SLOT(exitLoop())); provider.playerControl()->updateState(QMediaPlayer::PlayingState); - QTestEventLoop::instance().enterLoop(1); + QTestEventLoop::instance().enterLoop(2); QVERIFY(spy.count() > 3 && spy.count() < 6); // 4 or 5 provider.playerControl()->updateState(QMediaPlayer::PausedState); @@ -721,7 +721,7 @@ void tst_QDeclarativeAudio::bufferProgress() provider.playerControl()->updateMediaStatus( QMediaPlayer::BufferingMedia, QMediaPlayer::PlayingState); - QTestEventLoop::instance().enterLoop(1); + QTestEventLoop::instance().enterLoop(2); QVERIFY(spy.count() > 3 && spy.count() < 6); // 4 or 5 provider.playerControl()->updateMediaStatus(QMediaPlayer::BufferedMedia);