Skip to content

Commit

Permalink
Fix flaky test (#372)
Browse files Browse the repository at this point in the history
  • Loading branch information
int128 committed Oct 8, 2023
1 parent ca4ef07 commit a8093c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/authproxy/auth_proxy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ func TestAuthProxy_Do(t *testing.T) {
time.Sleep(300 * time.Millisecond)
return nil // lost connection
}).
Times(2)
MinTimes(2)
reverseProxy := mock_reverseproxy.NewMockInterface(ctrl)
reverseProxy.EXPECT().
Run(reverseproxy.Option{
Expand All @@ -284,7 +284,7 @@ func TestAuthProxy_Do(t *testing.T) {
readyChan <- i
return nil
}).
Times(2)
MinTimes(2)
m := newMocks(ctrl)
m.browser.EXPECT().Open("http://localhost:8000")
u := &AuthProxy{
Expand Down

0 comments on commit a8093c1

Please sign in to comment.