Skip to content

Commit 85db78c

Browse files
committed
rename migration
1 parent 1315a46 commit 85db78c

File tree

3 files changed

+0
-19
lines changed

3 files changed

+0
-19
lines changed

coderd/notifications_test.go

-19
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import (
66
"slices"
77
"testing"
88

9-
"github.com/stretchr/testify/assert"
109
"github.com/stretchr/testify/require"
1110

1211
"github.com/coder/serpent"
@@ -15,7 +14,6 @@ import (
1514
"github.com/coder/coder/v2/coderd/database"
1615
"github.com/coder/coder/v2/coderd/notifications"
1716
"github.com/coder/coder/v2/coderd/notifications/notificationstest"
18-
"github.com/coder/coder/v2/coderd/notifications/push"
1917
"github.com/coder/coder/v2/codersdk"
2018
"github.com/coder/coder/v2/testutil"
2119
)
@@ -390,23 +388,6 @@ const (
390388
func TestPushNotificationSubscription(t *testing.T) {
391389
t.Parallel()
392390

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-
410391
t.Run("CRUD", func(t *testing.T) {
411392
t.Parallel()
412393

0 commit comments

Comments
 (0)