mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 11:21:47 +00:00
Fix error message in attach_test.go
Co-authored-by: Akanksha kumari <akankshakumari393@gmail.com>
This commit is contained in:
parent
8d4ec9ac9d
commit
1dd3879da0
@ -550,7 +550,7 @@ func TestReattachMessage(t *testing.T) {
|
||||
Pod: test.pod,
|
||||
}
|
||||
if msg := options.reattachMessage(test.container, test.rawTTY); test.expected == "" && msg != "" {
|
||||
t.Errorf("reattachMessage(%v, %v) = %q, wanted empty string", test.container, test.rawTTY, msg)
|
||||
t.Errorf("reattachMessage(%v, %v) = %q, want empty string", test.container, test.rawTTY, msg)
|
||||
} else if !strings.Contains(msg, test.expected) {
|
||||
t.Errorf("reattachMessage(%v, %v) = %q, want string containing %q", test.container, test.rawTTY, msg, test.expected)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user