6
6
"slices"
7
7
"testing"
8
8
9
- "github.com/stretchr/testify/assert"
10
9
"github.com/stretchr/testify/require"
11
10
12
11
"github.com/coder/serpent"
@@ -15,7 +14,6 @@ import (
15
14
"github.com/coder/coder/v2/coderd/database"
16
15
"github.com/coder/coder/v2/coderd/notifications"
17
16
"github.com/coder/coder/v2/coderd/notifications/notificationstest"
18
- "github.com/coder/coder/v2/coderd/notifications/push"
19
17
"github.com/coder/coder/v2/codersdk"
20
18
"github.com/coder/coder/v2/testutil"
21
19
)
@@ -390,23 +388,6 @@ const (
390
388
func TestPushNotificationSubscription (t * testing.T ) {
391
389
t .Parallel ()
392
390
393
- t .Run ("Disabled" , func (t * testing.T ) {
394
- t .Parallel ()
395
-
396
- client := coderdtest .New (t , & coderdtest.Options {
397
- PushNotifier : & push.NoopNotifier {
398
- Msg : assert .AnError .Error (),
399
- },
400
- })
401
-
402
- ctx := testutil .Context (t , testutil .WaitShort )
403
-
404
- owner := coderdtest .CreateFirstUser (t , client )
405
- memberClient , _ := coderdtest .CreateAnotherUser (t , client , owner .OrganizationID )
406
- err := memberClient .TestPushNotification (ctx )
407
- require .EqualError (t , err , assert .AnError .Error (), "test push notification should fail" )
408
- })
409
-
410
391
t .Run ("CRUD" , func (t * testing.T ) {
411
392
t .Parallel ()
412
393
0 commit comments