Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit72c2901

Browse files
committed
rename migration
1 parentdd13bb1 commit72c2901

File tree

3 files changed

+0
-19
lines changed

3 files changed

+0
-19
lines changed
File renamed without changes.
File renamed without changes.

‎coderd/notifications_test.go‎

Lines changed: 0 additions & 19 deletions
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
funcTestPushNotificationSubscription(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)

[8]ページ先頭

©2009-2025 Movatter.jp