Use predefined variable instead of duplicated string

This commit is contained in:
Yoon 2023-02-12 20:50:39 +09:00
parent 4303743736
commit a3405f35b4

View File

@ -73,7 +73,7 @@ func TestDefaultBinder(t *testing.T) {
t.Fatal(err)
}
binder := &DefaultBinder{handle: fh}
status := binder.Bind(ctx, nil, testPod, "foohost.kubernetes.mydomain.com")
status := binder.Bind(ctx, nil, testPod, testNode)
if got := status.AsError(); (tt.injectErr != nil) != (got != nil) {
t.Errorf("got error %q, want %q", got, tt.injectErr)
}