Skip to content

Commit

Permalink
Make MainSchedulerTest to cancel task after successful periodic task …
Browse files Browse the repository at this point in the history
…test.
  • Loading branch information
IlyaGulya committed Jan 10, 2024
1 parent f685041 commit d32fd31
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ class MainSchedulerTest {

return checkTicks.toList().testAwait { results ->
assertEquals(expectedResults, results)
// Required to pass test on NodeJS environment since runtime waits
// for all tasks to cancel or finish their work.
executor.cancel()
}
}
}

0 comments on commit d32fd31

Please sign in to comment.