Skip to content

Commit

Permalink
fix: test remove race
Browse files Browse the repository at this point in the history
  • Loading branch information
maaslalani committed Feb 28, 2024
1 parent c4b3171 commit b425f80
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions spinner/spinner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,6 @@ func TestSpinnerView(t *testing.T) {
t.Errorf("Expected view to contain title 'Test', got '%s'", view)
}
}
func TestSpinnerAction(t *testing.T) {
var actionCalled bool
testAction := func() { actionCalled = true }

s := New().Action(testAction)
s.Run()

if !actionCalled {
t.Errorf("Action was not called after Run")
}
}

func TestSpinnerContextCancellation(t *testing.T) {
ctx, cancel := context.WithCancel(context.Background())
Expand Down

0 comments on commit b425f80

Please sign in to comment.