Skip to content

Commit 12b1ccf

Browse files
committed
fix
1 parent 082a599 commit 12b1ccf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

coderd/agentapi/stats_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ func TestUpdateStates(t *testing.T) {
208208
StatsReporter: workspacestats.NewReporter(workspacestats.ReporterOptions{
209209
Database: dbM,
210210
Pubsub: ps,
211+
UsageTracker: workspacestats.NewTracker(dbM),
211212
StatsBatcher: batcher,
212213
TemplateScheduleStore: templateScheduleStorePtr(templateScheduleStore),
213214
// Ignored when nil.
@@ -319,6 +320,7 @@ func TestUpdateStates(t *testing.T) {
319320
StatsReporter: workspacestats.NewReporter(workspacestats.ReporterOptions{
320321
Database: dbM,
321322
Pubsub: ps,
323+
UsageTracker: workspacestats.NewTracker(dbM),
322324
StatsBatcher: batcher,
323325
TemplateScheduleStore: templateScheduleStorePtr(templateScheduleStore),
324326
UpdateAgentMetricsFn: func(ctx context.Context, labels prometheusmetrics.AgentMetricLabels, metrics []*agentproto.Stats_Metric) {
@@ -428,6 +430,7 @@ func TestUpdateStates(t *testing.T) {
428430
Database: dbM,
429431
Pubsub: ps,
430432
StatsBatcher: batcher,
433+
UsageTracker: workspacestats.NewTracker(dbM),
431434
TemplateScheduleStore: templateScheduleStorePtr(templateScheduleStore),
432435
UpdateAgentMetricsFn: func(ctx context.Context, labels prometheusmetrics.AgentMetricLabels, metrics []*agentproto.Stats_Metric) {
433436
updateAgentMetricsFnCalled = true

0 commit comments

Comments
 (0)