mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: lower amount of cached timezones for deployment daus (#11196)
Updates https://github.com/coder/customers/issues/384 This should help alleviate some pressure, but doesn't really fix the root cause. See above issue for more details.
This commit is contained in:
@@ -152,11 +152,11 @@ func TestCache_TemplateUsers(t *testing.T) {
|
||||
},
|
||||
{
|
||||
name: "tzOffset",
|
||||
tzOffset: 1,
|
||||
tzOffset: 3,
|
||||
args: args{
|
||||
rows: []database.InsertWorkspaceAgentStatParams{
|
||||
statRow(zebra, dateH(2022, 1, 2, 1)),
|
||||
statRow(tiger, dateH(2022, 1, 2, 1)),
|
||||
statRow(zebra, dateH(2022, 1, 2, 3)),
|
||||
statRow(tiger, dateH(2022, 1, 2, 3)),
|
||||
// With offset these should be in the previous day
|
||||
statRow(zebra, dateH(2022, 1, 2, 0)),
|
||||
statRow(tiger, dateH(2022, 1, 2, 0)),
|
||||
|
||||
Reference in New Issue
Block a user