Skip to content

Commit

Permalink
Check the tests dont overlap
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Feb 26, 2024
1 parent 49f5fa8 commit ecb0c1f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/animation/animation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ func TestGLDriver_StopAnimationImmediatelyAndInsideTick(t *testing.T) {
go tick(run) // simulate a graphics draw loop
run.Stop(a)

run.animationMutex.RLock()
assert.Zero(t, len(run.animations))
run.animationMutex.RUnlock()

// stopping animation inside tick function
for i := 0; i < 10; i++ {
wg.Add(1)
Expand Down

0 comments on commit ecb0c1f

Please sign in to comment.