Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f049c05

Browse files
committed
chore(coderd/notifications): reformat imports and remove dead code
1 parent 3eb9c1e commit f049c05

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

coderd/notifications/notifications_test.go

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,23 +25,16 @@ import (
2525
"testing"
2626
"time"
2727

28-
"golang.org/x/xerrors"
29-
30-
"cdr.dev/slog"
31-
3228
"github.com/emersion/go-sasl"
33-
34-
"github.com/coder/quartz"
35-
3629
"github.com/google/go-cmp/cmp"
3730
"github.com/google/uuid"
3831
smtpmock "github.com/mocktools/go-smtp-mock/v2"
3932
"github.com/stretchr/testify/assert"
4033
"github.com/stretchr/testify/require"
4134
"go.uber.org/goleak"
35+
"golang.org/x/xerrors"
4236

43-
"github.com/coder/serpent"
44-
37+
"cdr.dev/slog"
4538
"github.com/coder/coder/v2/coderd/coderdtest"
4639
"github.com/coder/coder/v2/coderd/database"
4740
"github.com/coder/coder/v2/coderd/database/dbauthz"
@@ -55,6 +48,8 @@ import (
5548
"github.com/coder/coder/v2/coderd/util/syncmap"
5649
"github.com/coder/coder/v2/codersdk"
5750
"github.com/coder/coder/v2/testutil"
51+
"github.com/coder/quartz"
52+
"github.com/coder/serpent"
5853
)
5954

6055
// updateGoldenFiles is a flag that can be set to update golden files.
@@ -1116,9 +1111,6 @@ func TestNotificationTemplates_Golden(t *testing.T) {
11161111
return msg != nil && len(msg.Contents) > 0
11171112
}, testutil.WaitShort, testutil.IntervalFast)
11181113

1119-
// require.NotNil(t, msg, "want a message to be sent")
1120-
// require.NotEmpty(t, msg.Contents, "want a non-empty message")
1121-
11221114
body := normalizeGoldenEmail([]byte(msg.Contents))
11231115

11241116
err = smtpManager.Stop(ctx)

0 commit comments

Comments
 (0)