mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
refactor: migrate story snapshot params to pixel (#26844)
This commit is contained in:
@@ -10663,7 +10663,7 @@ func TestUsageEventsTrigger(t *testing.T) {
|
||||
require.Equal(t, "hb_ai_seats_v1", rows[0].EventType)
|
||||
require.JSONEq(t, `{"count": 10}`, string(rows[0].UsageData))
|
||||
|
||||
// Insert a higher count on the same day — should take the max.
|
||||
// Insert a higher count on the same day. It should take the max.
|
||||
err = db.InsertUsageEvent(ctx, database.InsertUsageEventParams{
|
||||
ID: "hb-2",
|
||||
EventType: "hb_ai_seats_v1",
|
||||
@@ -10676,7 +10676,7 @@ func TestUsageEventsTrigger(t *testing.T) {
|
||||
require.Len(t, rows, 1)
|
||||
require.JSONEq(t, `{"count": 50}`, string(rows[0].UsageData))
|
||||
|
||||
// Insert a lower count on the same day — should keep the max (50).
|
||||
// Insert a lower count on the same day. It should keep the max (50).
|
||||
err = db.InsertUsageEvent(ctx, database.InsertUsageEventParams{
|
||||
ID: "hb-3",
|
||||
EventType: "hb_ai_seats_v1",
|
||||
|
||||
Reference in New Issue
Block a user