From 95dc7aa15cfb21f1e6ee2443cf79381ed8058de3 Mon Sep 17 00:00:00 2001 From: SirLynix Date: Sat, 7 May 2022 15:31:07 +0200 Subject: [PATCH] Try to fix MusicTest --- tests/Engine/Audio/MusicTest.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/Engine/Audio/MusicTest.cpp b/tests/Engine/Audio/MusicTest.cpp index 30619fdc0..48bbadede 100644 --- a/tests/Engine/Audio/MusicTest.cpp +++ b/tests/Engine/Audio/MusicTest.cpp @@ -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);