From 50139d3a26d13def43433c1cd69f87833a0218f2 Mon Sep 17 00:00:00 2001 From: AdamDang Date: Fri, 6 Apr 2018 21:01:21 +0800 Subject: [PATCH] Correct the returned message non-nill->non-nil --- staging/src/k8s.io/apiserver/pkg/endpoints/audit_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/staging/src/k8s.io/apiserver/pkg/endpoints/audit_test.go b/staging/src/k8s.io/apiserver/pkg/endpoints/audit_test.go index 728e93b2a6e..78bbe4464e4 100644 --- a/staging/src/k8s.io/apiserver/pkg/endpoints/audit_test.go +++ b/staging/src/k8s.io/apiserver/pkg/endpoints/audit_test.go @@ -70,7 +70,7 @@ func TestAudit(t *testing.T) { if events[i].RequestObject == nil { return nil } - return fmt.Errorf("expected RequestBody to be nil, got non-nill '%s'", events[i].RequestObject.Raw) + return fmt.Errorf("expected RequestBody to be nil, got non-nil '%s'", events[i].RequestObject.Raw) } } requestBodyIs := func(i int, text string) eventCheck { @@ -100,7 +100,7 @@ func TestAudit(t *testing.T) { if events[i].ResponseObject == nil { return nil } - return fmt.Errorf("expected ResponseBody to be nil, got non-nill '%s'", events[i].ResponseObject.Raw) + return fmt.Errorf("expected ResponseBody to be nil, got non-nil '%s'", events[i].ResponseObject.Raw) } } responseBodyMatches := func(i int, pattern string) eventCheck {