mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
coderd/metricscache: fix test race (#4662)
This commit is contained in:
@@ -330,7 +330,7 @@ func TestCache_BuildTime(t *testing.T) {
|
||||
if tt.want.loads {
|
||||
require.Eventuallyf(t, func() bool {
|
||||
stats := cache.TemplateBuildTimeStats(template.ID)
|
||||
return assert.NotEmpty(t, stats)
|
||||
return stats != codersdk.TemplateBuildTimeStats{}
|
||||
}, testutil.WaitLong, testutil.IntervalMedium,
|
||||
"BuildTime never populated",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user