mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: Always use UTC time when inserting stats (#4009)
Fixes a flake reported by @mafredri
This commit is contained in:
@@ -665,6 +665,6 @@ func TestTemplateDAUs(t *testing.T) {
|
||||
workspaces, err = client.Workspaces(ctx, codersdk.WorkspaceFilter{})
|
||||
require.NoError(t, err)
|
||||
assert.WithinDuration(t,
|
||||
time.Now(), workspaces[0].LastUsedAt, time.Minute,
|
||||
database.Now(), workspaces[0].LastUsedAt, time.Minute,
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user