Skip to content

Commit 01e3d22

Browse files
committed
Fix test
1 parent 5fa3774 commit 01e3d22

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

main_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ func TestGetClientWithToken(t *testing.T) {
5656
t.Fatalf("should be fail: %v", err)
5757
}
5858

59+
*isInsecure = true
5960
readUsername = func(t *tty.TTY) (string, error) { return "", nil }
6061
readPassword = func(t *tty.TTY) (string, error) { return "", nil }
6162
if _, err := getClientWithToken(context.Background(), fp); err != nil {
@@ -105,6 +106,7 @@ func TestGetToken(t *testing.T) {
105106
t.Fatalf("should be fail: %v", err)
106107
}
107108

109+
*isInsecure = true
108110
token, err := getToken(context.Background(), apiURL, fp)
109111
if err != nil {
110112
t.Fatalf("should not be fail: %v", err)

0 commit comments

Comments
 (0)