Skip to content

Commit 8a0972a

Browse files
committed
API - update tests
1 parent 6fee059 commit 8a0972a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

app/api/src/sonicpi_api.test.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,13 @@ TEST_CASE("Init", "API")
7878
APIInitResult executeResult = api.Init(fs::path(APP_ROOT) / "..");
7979
if (executeResult == APIInitResult::Successful)
8080
{
81-
if (api.WaitUntilReady())
81+
if (api.Boot() == APIBootResult::Successful)
8282
{
83-
api.TestAudio();
84-
std::this_thread::sleep_for(3s);
83+
if (api.WaitUntilReady())
84+
{
85+
api.TestAudio();
86+
std::this_thread::sleep_for(3s);
87+
}
8588
}
8689
}
8790

0 commit comments

Comments
 (0)