Skip to content

Commit a74d3f7

Browse files
chore: fix lint, add action
1 parent 4a2ec9b commit a74d3f7

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

cli/notifications_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ func TestNotificationsTest(t *testing.T) {
116116
t.Parallel()
117117

118118
t.Run("OwnerCanSendTestNotification", func(t *testing.T) {
119+
t.Parallel()
120+
119121
notifyEnq := &notificationstest.FakeEnqueuer{}
120122

121123
// Given: An owner user.
@@ -138,6 +140,8 @@ func TestNotificationsTest(t *testing.T) {
138140
})
139141

140142
t.Run("MemberCannotSendTestNotification", func(t *testing.T) {
143+
t.Parallel()
144+
141145
notifyEnq := &notificationstest.FakeEnqueuer{}
142146

143147
// Given: A member user.

coderd/database/migrations/000295_test_notification.up.sql

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,10 @@ VALUES (
77
E'Hi {{.UserName}},\n\n'||
88
E'This is a test notification.',
99
'Notification Events',
10-
'[]'::jsonb
10+
'[
11+
{
12+
"label": "View notification settings",
13+
"url": "{{base_url}}/deployment/notifications?tab=settings"
14+
}
15+
]'::jsonb
1116
);

coderd/notifications_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,8 @@ func TestNotificationTest(t *testing.T) {
346346
})
347347

348348
t.Run("MemberCannotSendTestNotification", func(t *testing.T) {
349+
t.Parallel()
350+
349351
ctx := testutil.Context(t, testutil.WaitShort)
350352

351353
notifyEnq := &notificationstest.FakeEnqueuer{}

0 commit comments

Comments
 (0)