Skip to content

Commit a1394b0

Browse files
committed
Update message for checkTLSInsecure test
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
1 parent 0f0caac commit a1394b0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

commands/errors_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ func Test_checkTLSInsecure(t *testing.T) {
2929
{name: "HTTP gateway to localhost without TLSInsecure",
3030
args: args{gateway: "http://localhost:8080", tlsInsecure: false},
3131
want: ""},
32-
{name: "HTTP gateway to remote host with TLSInsecure", args: args{gateway: "http://192.168.0.101:8080", tlsInsecure: true},
32+
{name: "HTTP gateway to remote host with TLSInsecure",
33+
args: args{gateway: "http://192.168.0.101:8080", tlsInsecure: true},
3334
want: ""},
3435
}
3536

@@ -38,7 +39,7 @@ func Test_checkTLSInsecure(t *testing.T) {
3839
got := checkTLSInsecure(tt.args.gateway, tt.args.tlsInsecure)
3940

4041
if got != tt.want {
41-
t.Errorf("checkTLSInsecure() = %v, want %v", got, tt.want)
42+
t.Errorf("[%s] want: %v, but got: %v", name, tt.want, got)
4243
}
4344
})
4445
}

0 commit comments

Comments
 (0)