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:
@@ -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)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user