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 Dec 9, 2024
1 parent d8f5039 commit 3723d6e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/animation/animation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ func TestGLDriver_StopAnimationImmediatelyAndInsideTick(t *testing.T) {
go tick(run) // simulate a graphics draw loop
run.Stop(a)

run = &Runner{}
wg = sync.WaitGroup{}

// stopping animation inside tick function
for i := 0; i < 10; i++ {
wg.Add(1)
Expand All @@ -86,6 +89,9 @@ func TestGLDriver_StopAnimationImmediatelyAndInsideTick(t *testing.T) {
run.Start(b)
}

run = &Runner{}
wg = sync.WaitGroup{}

// Similar to first part, but in this time this animation should be added and then removed
// from pendingAnimation slice.
c := &fyne.Animation{
Expand Down

0 comments on commit 3723d6e

Please sign in to comment.