summaryrefslogtreecommitdiffstats
path: root/src/test/searchqueryparsertest.cpp
diff options
context:
space:
mode:
authorUwe Klotz <uklotz@mixxx.org>2020-02-29 11:26:05 +0100
committerUwe Klotz <uklotz@mixxx.org>2020-02-29 11:26:25 +0100
commit35b96e5c3e63a5330711c16366e724b0fe29c4ed (patch)
tree8b1b64a17c93e359a86904ae246248f4f8fb2d04 /src/test/searchqueryparsertest.cpp
parentee515ca80f827e11e5e85773c4d1529cd3b39252 (diff)
Fix more spurious test failures due caused by concurrent tasks
Diffstat (limited to 'src/test/searchqueryparsertest.cpp')
-rw-r--r--src/test/searchqueryparsertest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/searchqueryparsertest.cpp b/src/test/searchqueryparsertest.cpp
index 0e4ce9dbc8..f1d80f9742 100644
--- a/src/test/searchqueryparsertest.cpp
+++ b/src/test/searchqueryparsertest.cpp
@@ -17,8 +17,8 @@ class SearchQueryParserTest : public LibraryTest {
}
TrackId addTrackToCollection(const QString& trackLocation) {
- TrackPointer pTrack = internalCollection()->getOrAddTrack(
- TrackRef::fromFileInfo(trackLocation));
+ TrackPointer pTrack =
+ getOrAddTrackByLocationBlocking(trackLocation);
return pTrack ? pTrack->getId() : TrackId();
}