Skip to content

Commit 5ddcf42

Browse files
NO-SNOW add milliseconds to pat name in auth test (#1393)
1 parent 1d76b37 commit 5ddcf42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

auth_with_pat_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"errors"
66
"fmt"
77
"log"
8+
"strings"
89
"testing"
910
"time"
1011
)
@@ -62,8 +63,7 @@ func getEndToEndPatSetupCommandVariables() (*Config, error) {
6263

6364
func createEndToEndPatToken(t *testing.T) *PatToken {
6465
cfg := setupOktaTest(t)
65-
patTokenName := fmt.Sprintf("PAT_GOLANG_%s", time.Now().Format("20060102150405"))
66-
66+
patTokenName := fmt.Sprintf("PAT_GOLANG_%s", strings.ReplaceAll(time.Now().Format("20060102150405.000"), ".", ""))
6767
patCommandVariables, err := getEndToEndPatSetupCommandVariables()
6868
assertNilE(t, err, "failed to get PAT command variables")
6969

0 commit comments

Comments
 (0)