Skip to content

Commit 7c8e501

Browse files
authored
Fix 'TestNewMutualTLSServer' test for go1.14 #1075 (#1091)
1 parent e9f28f7 commit 7c8e501

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/client/client_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ func TestNewMutualTLSServer(t *testing.T) {
9797
if err == nil {
9898
t.Fatalf("expected error with sign function")
9999
}
100-
if !strings.Contains(err.Error(), "Post https://nohost:8888/api/v1/cfssl/sign: dial tcp: lookup nohost") {
100+
if !(strings.Contains(err.Error(), "Post")) && !(strings.Contains(err.Error(), "https://nohost:8888/api/v1/cfssl/sign")) && !(strings.Contains(err.Error(), "dial tcp: lookup nohost: no such host")) {
101101
t.Fatalf("no error message %v", err)
102102
}
103103
}

0 commit comments

Comments
 (0)