mirror of
https://github.com/coder/coder.git
synced 2025-07-06 15:41:45 +00: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