mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 02:41:25 +00:00
Merge pull request #115709 from yoongon/feature/default-binder-testnode
Use predefined variable instead of duplicated string
This commit is contained in:
commit
a0878eb715
@ -73,7 +73,7 @@ func TestDefaultBinder(t *testing.T) {
|
|||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
binder := &DefaultBinder{handle: fh}
|
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) {
|
if got := status.AsError(); (tt.injectErr != nil) != (got != nil) {
|
||||||
t.Errorf("got error %q, want %q", got, tt.injectErr)
|
t.Errorf("got error %q, want %q", got, tt.injectErr)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user