Skip to content

Commit

Permalink
fixing unit test
Browse files Browse the repository at this point in the history
Signed-off-by: Jaydip Gabani <[email protected]>
  • Loading branch information
JaydipGabani committed Jan 16, 2024
1 parent 20b8d79 commit e4a707f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/syncutil/stats_reporter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ func initializeTestInstruments(t *testing.T) (rdr *sdkmetric.PeriodicReader, r *
mp := sdkmetric.NewMeterProvider(sdkmetric.WithReader(rdr))
meter = mp.Meter("test")

r, err = NewStatsReporter()
assert.NoError(t, err)
r = &Reporter{now: now}
_, err = meter.Int64ObservableGauge(syncMetricName, metric.WithInt64Callback(r.observeSync))
assert.NoError(t, err)
syncDurationM, err = meter.Float64Histogram(syncDurationMetricName)
Expand Down

0 comments on commit e4a707f

Please sign in to comment.