Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Http plugin add cookie auth #9395

Merged
merged 11 commits into from
Jul 13, 2021
Prev Previous commit
Next Next commit
timing failures on darwin/win
  • Loading branch information
jh125486 committed Jun 21, 2021
commit 47d6d78d0b6029f8aad783f3f90441fa7ada7919
8 changes: 4 additions & 4 deletions plugins/common/cookie/cookie_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,15 @@ func (s fakeServer) checkResp(t *testing.T, expCode int) {
}
}

func (s fakeServer) checkAuthCount(t *testing.T, expCount int) {
func (s fakeServer) checkAuthCount(t *testing.T, atLeast int32) {
t.Helper()
require.EqualValues(t, expCount, atomic.LoadInt32(s.int32))
require.GreaterOrEqual(t, atomic.LoadInt32(s.int32), atLeast)
}

func TestAuthConfig_Start(t *testing.T) {
const (
renewal = 20 * time.Millisecond
renewalCheck = 55 * time.Millisecond
renewal = 10 * time.Millisecond
renewalCheck = 5 * renewal
)
type fields struct {
Method string
Expand Down