From 3723d6ee001f6f6e44efc340762352861cdd6d2d Mon Sep 17 00:00:00 2001 From: Andy Williams Date: Mon, 26 Feb 2024 19:55:49 +0000 Subject: [PATCH] Check the tests dont overlap --- internal/animation/animation_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/internal/animation/animation_test.go b/internal/animation/animation_test.go index 7f5e9fcda3..1612194bd7 100644 --- a/internal/animation/animation_test.go +++ b/internal/animation/animation_test.go @@ -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) @@ -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{