Merge pull request #115709 from yoongon/feature/default-binder-testnode

Use predefined variable instead of duplicated string
This commit is contained in:
Kubernetes Prow Robot 2023-02-13 14:53:49 -08:00 committed by GitHub
commit a0878eb715
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)
}