Skip to content

Commit

Permalink
Update coreprovider_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
CatherineF-dev authored Apr 30, 2024
1 parent 99fca61 commit fd69317
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -759,6 +759,7 @@ func TestCoreprovider_GetPodMetrics_Many(t *testing.T) {
t.Fatalf("Unexpected result. Expected len: \n%v,\n received: \n%v", len(pods), len(podMetrics))
}


if diff := cmp.Diff(expectedPodMetrics, podMetrics, cmpopts.EquateApprox(0, 0.001), cmpopts.IgnoreFields(metrics.PodMetrics{}, "ObjectMeta", "CreationTimestamp")); diff != "" {
t.Errorf("Has a diff, (-want, +got): %s. Want: %v, got: %v.", diff, expectedPodMetrics, podMetrics)
}
Expand Down

0 comments on commit fd69317

Please sign in to comment.