Fix typo in controller_test (#10034)

Signed-off-by: z1cheng <imchench@gmail.com>
This commit is contained in:
Chen Chen 2023-06-04 01:50:41 +08:00 committed by GitHub
parent 179aa898f4
commit 1503695b30
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -387,7 +387,7 @@ func TestCheckWarning(t *testing.T) {
t.Errorf("no error should be returned, but %s was returned", err) t.Errorf("no error should be returned, but %s was returned", err)
} }
if len(warnings) != 1 { if len(warnings) != 1 {
t.Errorf("expected 1 warning to occur but %d occured", len(warnings)) t.Errorf("expected 1 warning to occur but %d occurred", len(warnings))
} else { } else {
t.Logf("got warning %s correctly", warnings[0]) t.Logf("got warning %s correctly", warnings[0])
} }
@ -424,7 +424,7 @@ func TestCheckWarning(t *testing.T) {
t.Errorf("no error should be returned, but %s was returned", err) t.Errorf("no error should be returned, but %s was returned", err)
} }
if len(warnings) != 1 { if len(warnings) != 1 {
t.Errorf("expected 1 warning to occur but %d occured", len(warnings)) t.Errorf("expected 1 warning to occur but %d occurred", len(warnings))
} else { } else {
t.Logf("got warnings %v correctly", warnings) t.Logf("got warnings %v correctly", warnings)
} }
@ -441,7 +441,7 @@ func TestCheckWarning(t *testing.T) {
t.Errorf("no error should be returned, but %s was returned", err) t.Errorf("no error should be returned, but %s was returned", err)
} }
if len(warnings) != 4 { if len(warnings) != 4 {
t.Errorf("expected 4 warning to occur but %d occured", len(warnings)) t.Errorf("expected 4 warning to occur but %d occurred", len(warnings))
} else { } else {
t.Logf("got warnings %v correctly", warnings) t.Logf("got warnings %v correctly", warnings)
} }