summaryrefslogtreecommitdiffstats
path: root/src/test/analyserwaveformtest.cpp
diff options
context:
space:
mode:
authorUwe Klotz <uwe_klotz@web.de>2017-06-20 23:53:19 +0200
committerUwe Klotz <uwe_klotz@web.de>2017-06-20 23:54:30 +0200
commit337533855f09237b8a1e3551b32baa4a87a317b4 (patch)
treed84c6c237c4f6e4ede992c0ad4044de364e40eee /src/test/analyserwaveformtest.cpp
parentc0b7a50815706df9a1d382a4464d902044816bae (diff)
Fix saving of waveform analysis in database
The initialization of the AnalysisDao with the thread-local database connection was missing. The restricted design of the analyzer API required to move the AnalysisDao from AnalyzeWaveform to AnalyzerQueue.
Diffstat (limited to 'src/test/analyserwaveformtest.cpp')
-rw-r--r--src/test/analyserwaveformtest.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/analyserwaveformtest.cpp b/src/test/analyserwaveformtest.cpp
index ad619b842f..8e40121dbb 100644
--- a/src/test/analyserwaveformtest.cpp
+++ b/src/test/analyserwaveformtest.cpp
@@ -18,7 +18,8 @@ namespace {
class AnalyzerWaveformTest: public MixxxTest {
protected:
AnalyzerWaveformTest()
- : aw(config()),
+ : analysisDao(config()),
+ aw(&analysisDao),
bigbuf(nullptr),
canaryBigBuf(nullptr) {
}
@@ -49,6 +50,7 @@ class AnalyzerWaveformTest: public MixxxTest {
}
protected:
+ AnalysisDao analysisDao;
AnalyzerWaveform aw;
TrackPointer tio;
CSAMPLE* bigbuf;