Try to fix MusicTest

This commit is contained in:
SirLynix 2022-05-07 15:31:07 +02:00
parent 00f11a74dc
commit 95dc7aa15c
1 changed files with 2 additions and 1 deletions

View File

@ -65,6 +65,7 @@ SCENARIO("Music", "[AUDIO][MUSIC]")
music.Play();
std::this_thread::sleep_for(std::chrono::milliseconds(200));
CHECK(music.GetStatus() == Nz::SoundStatus::Playing);
CHECK(music.GetPlayingOffset() >= 3650);
AND_WHEN("We let the sound stop by itself")
@ -72,7 +73,7 @@ SCENARIO("Music", "[AUDIO][MUSIC]")
REQUIRE(music.GetDuration() == 63059);
music.SetPlayingOffset(62900);
std::this_thread::sleep_for(std::chrono::milliseconds(200));
std::this_thread::sleep_for(std::chrono::milliseconds(300));
CHECK(music.GetStatus() == Nz::SoundStatus::Stopped);
CHECK(music.GetPlayingOffset() == 0);