Skip to content

Commit

Permalink
arjan review 3
Browse files Browse the repository at this point in the history
  • Loading branch information
purnesh42H committed Feb 25, 2025
1 parent c50e00c commit f83d6aa
Show file tree
Hide file tree
Showing 4 changed files with 162 additions and 168 deletions.
9 changes: 6 additions & 3 deletions stats/opentelemetry/csm/observability_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,8 @@ func (s) TestCSMPluginOptionUnary(t *testing.T) {
opts := test.opts
opts.Target = ss.Target
wantMetrics := itestutils.MetricDataUnary(opts)
itestutils.CompareMetrics(ctx, t, reader, gotMetrics, wantMetrics)
gotMetrics = itestutils.WaitForServerMetrics(ctx, t, reader, gotMetrics, wantMetrics)
itestutils.CompareMetrics(t, gotMetrics, wantMetrics)
})
}
}
Expand Down Expand Up @@ -419,7 +420,8 @@ func (s) TestCSMPluginOptionStreaming(t *testing.T) {
opts := test.opts
opts.Target = ss.Target
wantMetrics := itestutils.MetricDataStreaming(opts)
itestutils.CompareMetrics(ctx, t, reader, gotMetrics, wantMetrics)
gotMetrics = itestutils.WaitForServerMetrics(ctx, t, reader, gotMetrics, wantMetrics)
itestutils.CompareMetrics(t, gotMetrics, wantMetrics)
})
}
}
Expand Down Expand Up @@ -603,7 +605,8 @@ func (s) TestXDSLabels(t *testing.T) {
},
}

itestutils.CompareMetrics(ctx, t, reader, gotMetrics, wantMetrics)
gotMetrics = itestutils.WaitForServerMetrics(ctx, t, reader, gotMetrics, wantMetrics)
itestutils.CompareMetrics(t, gotMetrics, wantMetrics)
}

// TestObservability tests that Observability global function compiles and runs
Expand Down
Loading

0 comments on commit f83d6aa

Please sign in to comment.