mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
Correct the returned message
non-nill->non-nil
This commit is contained in:
parent
80bd7510df
commit
50139d3a26
@ -70,7 +70,7 @@ func TestAudit(t *testing.T) {
|
|||||||
if events[i].RequestObject == nil {
|
if events[i].RequestObject == nil {
|
||||||
return 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 {
|
requestBodyIs := func(i int, text string) eventCheck {
|
||||||
@ -100,7 +100,7 @@ func TestAudit(t *testing.T) {
|
|||||||
if events[i].ResponseObject == nil {
|
if events[i].ResponseObject == nil {
|
||||||
return 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 {
|
responseBodyMatches := func(i int, pattern string) eventCheck {
|
||||||
|
Loading…
Reference in New Issue
Block a user