Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix 'TestNewMutualTLSServer' test for go1.14 #1075 (#1091)
  • Loading branch information
claucece committed Mar 23, 2020
1 parent e9f28f7 commit 7c8e501
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/client/client_test.go
Expand Up @@ -97,7 +97,7 @@ func TestNewMutualTLSServer(t *testing.T) {
if err == nil {
t.Fatalf("expected error with sign function")
}
if !strings.Contains(err.Error(), "Post https://nohost:8888/api/v1/cfssl/sign: dial tcp: lookup nohost") {
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")) {
t.Fatalf("no error message %v", err)
}
}
Expand Down

0 comments on commit 7c8e501

Please sign in to comment.