Commit Graph
2 Commits
Author SHA1 Message Date
dualfroz d22b1a2b09 audio: run the tests waiting on real time on the fake clock of synctest
TestGC, TestSameSourcePlayers, TestDeferredDeviceCreation,
TestPauseAndStopReading, TestPauseAndStopReadingWhilePaused,
TestPositionNotGrowingAfterFinished and
TestPlayerErrorDoesNotStopOtherPlayers now run in a synctest bubble, so
their sleeps and deadlines take no real time.

A bubble must not leave goroutines behind, so ResetContextForTesting
now stops the goroutine updating the players and the dummy players
reading their sources, and waits for them to exit. Before, every test
leaked them.

Updates #3716
2026-10-03 16:06:04 +02:00
upstream 87bac3749b Upstream hajimehoshi/ebiten state of the touched files before 040fcc781c 2026-10-02 16:34:40 +02:00