Skip to content

Commit

Permalink
Increase Timeout to 10 s
Browse files Browse the repository at this point in the history
  • Loading branch information
daschuer committed Dec 2, 2024
1 parent e54815d commit 48f9e7a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/test/stemcontrolobjecttest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,15 +110,18 @@ class StemControlTest : public BaseSignalPathTest {
TrackPointer pNewTrack) { pLoadedTrack = pNewTrack; });
BaseSignalPathTest::loadTrack(pDeck, pTrack);

for (int i = 0; i < 2000; ++i) {
for (int i = 0; i < 10000; ++i) {
if (pLoadedTrack == pTrack) {
break;
}
int maxtime = 1; // ms
QCoreApplication::processEvents(QEventLoop::WaitForMoreEvents, maxtime);
// 1 ms for waiting 2 s at max
// 1 ms for waiting 10 s at max
}
QObject::disconnect(connection);
if (pLoadedTrack != pTrack) {
qWarning() << "Timeout: failed loading track" << pTrack->getLocation();
}
}

std::unique_ptr<PollingControlProxy> m_pPlay;
Expand Down

0 comments on commit 48f9e7a

Please sign in to comment.