Skip to content

Commit

Permalink
change TTL from 60ns (typo) to 60s to avoid flaky test (#9269)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmoessis authored Apr 18, 2022
1 parent 37e40d3 commit 7ad1e16
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions extension/asapauthextension/extension_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
"context"
"net/http"
"testing"
"time"

"bitbucket.org/atlassian/go-asap/v2"
"github.com/stretchr/testify/assert"
Expand Down Expand Up @@ -49,7 +50,7 @@ var _ asap.KeyFetcher = (*mockKeyFetcher)(nil)
func TestRoundTripper(t *testing.T) {
cfg := &Config{
PrivateKey: privateKey,
TTL: 60,
TTL: 60 * time.Second,
Audience: []string{"test"},
Issuer: "test_issuer",
KeyID: "test_issuer/test_kid",
Expand All @@ -76,7 +77,7 @@ func TestRoundTripper(t *testing.T) {
func TestRPCAuth(t *testing.T) {
cfg := &Config{
PrivateKey: privateKey,
TTL: 60,
TTL: 60 * time.Second,
Audience: []string{"test"},
Issuer: "test_issuer",
KeyID: "test_issuer/test_kid",
Expand Down

0 comments on commit 7ad1e16

Please sign in to comment.