diff options
author | Uwe Klotz <uwe_klotz@web.de> | 2017-06-20 23:53:19 +0200 |
---|---|---|
committer | Uwe Klotz <uwe_klotz@web.de> | 2017-06-20 23:54:30 +0200 |
commit | 337533855f09237b8a1e3551b32baa4a87a317b4 (patch) | |
tree | d84c6c237c4f6e4ede992c0ad4044de364e40eee /src/test | |
parent | c0b7a50815706df9a1d382a4464d902044816bae (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')
-rw-r--r-- | src/test/analyserwaveformtest.cpp | 4 |
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; |