Commit 617831ae authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

unittests: Media: Add missing media save

This was working so far as we were using the cached version. Now that we
are doing the filtering through sqlite, the cached version doesn't help
parent 9ecfc564
......@@ -281,6 +281,7 @@ TEST_F( Medias, SearchTracks )
{
auto m = std::static_pointer_cast<Media>( ml->addMedia( "track " + std::to_string( i ) + ".mp3" ) );
a->addTrack( m, i, 1, 0, 0 );
m->save();
}
auto tracks = ml->searchMedia( "tra", SortingCriteria::Default, false ).tracks;
ASSERT_EQ( 10u, tracks.size() );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment