Skip to content

Commit 44b1bba

Browse files
committed
InitialState_NoBuilds_NoReport
1 parent 22b1482 commit 44b1bba

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

coderd/notifications/reports/generator_internal_test.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,23 @@ import (
2323
func TestReportFailedWorkspaceBuilds(t *testing.T) {
2424
t.Parallel()
2525

26-
t.Run("FailedBuilds_TemplateAdminOptIn_FirstRun_Report_SecondRunTooEarly_NoReport_ThirdRun_Report", func(t *testing.T) {
26+
t.Run("InitialState_NoBuilds_NoReport", func(t *testing.T) {
2727
t.Parallel()
2828

2929
// Setup
3030
logger, db, notifEnq, clk := setup(t)
31-
32-
ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitMedium)
33-
defer cancel()
34-
35-
// Given
31+
// nolint:gocritic // reportFailedWorkspaceBuilds is called by system.
32+
ctx := dbauthz.AsSystemRestricted(context.Background())
3633

3734
// When
3835
err := reportFailedWorkspaceBuilds(ctx, logger, db, notifEnq, clk)
39-
require.NoError(t, err)
4036

4137
// Then
38+
require.NoError(t, err)
39+
})
4240

41+
t.Run("FailedBuilds_TemplateAdminOptIn_FirstRun_Report_SecondRunTooEarly_NoReport_ThirdRun_Report", func(t *testing.T) {
42+
t.Parallel()
4343
// TODO
4444
})
4545

0 commit comments

Comments
 (0)