Fix errors_test

It seems like errors_test was referencing a global variable
and not its own local variable for printing an error message
in a failed test.

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
This commit is contained in:
Alex Ellis (OpenFaaS Ltd)
2022-10-04 09:28:40 +01:00
parent b61b51e3f7
commit d188521ee1

View File

@@ -39,7 +39,7 @@ func Test_checkTLSInsecure(t *testing.T) {
got := checkTLSInsecure(tt.args.gateway, tt.args.tlsInsecure)
if got != tt.want {
t.Errorf("[%s] want: %v, but got: %v", name, tt.want, got)
t.Errorf("[%s] want: %v, but got: %v", tt.name, tt.want, got)
}
})
}