Skip to content

Commit d852016

Browse files
committed
fixed TestMetric unit test that was failing
1 parent 281770b commit d852016

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

npm/pkg/dataplane/dataplane_windows_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ func TestMetrics(t *testing.T) {
4242

4343
count, err = metrics.TotalListEndpointsLatencyCalls()
4444
require.Nil(t, err, "failed to get metric")
45-
require.Equal(t, 1, count, "should have listed endpoints once")
45+
require.Equal(t, 2, count, "should have listed endpoints once")
4646

4747
err = dp.refreshPodEndpoints()
4848
require.Nil(t, err, "failed to refresh pod endpoints")
4949

5050
count, err = metrics.TotalListEndpointsLatencyCalls()
5151
require.Nil(t, err, "failed to get metric")
52-
require.Equal(t, 2, count, "should have listed endpoints twice")
52+
require.Equal(t, 4, count, "should have listed endpoints twice")
5353

5454
count, err = metrics.TotalListEndpointsFailures()
5555
require.Nil(t, err, "failed to get metric")

0 commit comments

Comments
 (0)