Skip to content

Commit

Permalink
enhance ut
Browse files Browse the repository at this point in the history
  • Loading branch information
louyuting committed Aug 13, 2020
1 parent ff1e03c commit 9012e9a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func TestCircuitBreakerSlotIntegration_1(t *testing.T) {
stateListener2.AssertCalled(t, "OnTransformToHalfOpen", circuitbreaker.Open, mock.Anything)
stateListener2.AssertNumberOfCalls(t, "OnTransformToOpen", 1)
stateListener2.AssertCalled(t, "OnTransformToOpen", circuitbreaker.HalfOpen, mock.Anything, mock.Anything)
time.Sleep(time.Duration(1) * time.Millisecond)
time.Sleep(time.Duration(100) * time.Millisecond)

// Third
circuitbreaker.ClearStateChangeListeners()
Expand Down

0 comments on commit 9012e9a

Please sign in to comment.