Fix incorrect format specifier in test files

This commit is contained in:
Karthik K N 2021-09-17 16:27:53 +05:30
parent cb2ea4bf7c
commit c651d50202
2 changed files with 2 additions and 2 deletions

View File

@ -1539,7 +1539,7 @@ func TestTrackJobStatusAndRemoveFinalizers(t *testing.T) {
succeededIndexes := succeededIndexesFromJob(&tc.job)
err := manager.trackJobStatusAndRemoveFinalizers(&tc.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) {