Fix error message in attach_test.go

Co-authored-by: Akanksha kumari <akankshakumari393@gmail.com>
This commit is contained in:
Lee Verberne 2022-07-17 12:38:26 +02:00 committed by GitHub
parent 8d4ec9ac9d
commit 1dd3879da0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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