Skip to content
Snippets Groups Projects
Commit 95606edf authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

test: fast discoverer: Use regular medialib factory


This fixes the default logging level for this test

(cherry picked from commit f4e02568)
Signed-off-by: default avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent d43386b2
No related branches found
No related tags found
No related merge requests found
......@@ -98,7 +98,10 @@ int main( int argc, char** argv )
auto testCb = std::make_unique<FastDiscoverCancelCb>();
Log::SetLogger( std::make_shared<IostreamLogger>() );
auto ml = std::make_unique<medialibrary::MediaLibrary>( dbPath, mlDir, nullptr );
auto ml = std::unique_ptr<medialibrary::MediaLibrary>{
static_cast<MediaLibrary*>(
NewMediaLibrary( dbPath.c_str(), mlDir.c_str(), false,
nullptr ) ) };
unlink( dbPath.c_str() );
ml->initialize( testCb.get() );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment