Skip to content

Commit fa49ccd

Browse files
authored
coderd/metricscache: fix test race (coder#4662)
1 parent 7a5ae1e commit fa49ccd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/metricscache/metricscache_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ func TestCache_BuildTime(t *testing.T) {
330330
if tt.want.loads {
331331
require.Eventuallyf(t, func() bool {
332332
stats := cache.TemplateBuildTimeStats(template.ID)
333-
return assert.NotEmpty(t, stats)
333+
return stats != codersdk.TemplateBuildTimeStats{}
334334
}, testutil.WaitLong, testutil.IntervalMedium,
335335
"BuildTime never populated",
336336
)

0 commit comments

Comments
 (0)