Commit 6026c09e authored by Alexander Stippich's avatar Alexander Stippich
Browse files

wait for data changed in test

parent 189712b9
......@@ -1537,6 +1537,7 @@ void MediaPlayListProxyModelTest::testRestoreSettings()
QSignalSpy randomPlayChangedSpy(&myPlayList, &MediaPlayListProxyModel::randomPlayChanged);
QSignalSpy repeatPlayChangedSpy(&myPlayList, &MediaPlayListProxyModel::repeatPlayChanged);
QSignalSpy playListFinishedSpy(&myPlayList, &MediaPlayListProxyModel::playListFinished);
QSignalSpy dataChangedSpy(&myPlayList, &MediaPlayListProxyModel::dataChanged);
myDatabaseContent.init(QStringLiteral("testDbDirectContent"));
......@@ -1573,6 +1574,8 @@ void MediaPlayListProxyModelTest::testRestoreSettings()
QStringLiteral("track1"), {}},
ElisaUtils::Track);
QVERIFY(dataChangedSpy.wait());
QCOMPARE(currentTrackChangedSpy.count(), 1);
QCOMPARE(randomPlayChangedSpy.count(), 0);
QCOMPARE(repeatPlayChangedSpy.count(), 0);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment