Merge pull request #105098 from Karthik-K-N/fix-error-format

Fix incorrect format specifier in test files
This commit is contained in:
Kubernetes Prow Robot 2021-09-20 08:56:09 -07:00 committed by GitHub
commit f55101913f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -1531,7 +1531,7 @@ func TestTrackJobStatusAndRemoveFinalizers(t *testing.T) {
succeededIndexes := succeededIndexesFromJob(job)
err := manager.trackJobStatusAndRemoveFinalizers(job, tc.pods, succeededIndexes, *uncounted, tc.finishedCond, tc.needsFlush)
if !errors.Is(err, tc.wantErr) {
t.Errorf("Got error %v, want %w", err, tc.wantErr)
t.Errorf("Got error %v, want %v", err, tc.wantErr)
}
if diff := cmp.Diff(tc.wantStatusUpdates, statusUpdates); diff != "" {
t.Errorf("Unexpected status updates (-want,+got):\n%s", diff)

View File

@ -680,7 +680,7 @@ func TestTranslateAllowedTopologies(t *testing.T) {
t.Logf("Running test: %v", tc.name)
gotTop, err := translateAllowedTopologies(tc.topology, GCEPDTopologyKey)
if err != nil {
t.Errorf("Unexpected error: %w", err)
t.Errorf("Unexpected error: %v", err)
}
if !reflect.DeepEqual(gotTop, tc.expectedToplogy) {