@@ -25,23 +25,16 @@ import (
25
25
"testing"
26
26
"time"
27
27
28
- "golang.org/x/xerrors"
29
-
30
- "cdr.dev/slog"
31
-
32
28
"github.com/emersion/go-sasl"
33
-
34
- "github.com/coder/quartz"
35
-
36
29
"github.com/google/go-cmp/cmp"
37
30
"github.com/google/uuid"
38
31
smtpmock "github.com/mocktools/go-smtp-mock/v2"
39
32
"github.com/stretchr/testify/assert"
40
33
"github.com/stretchr/testify/require"
41
34
"go.uber.org/goleak"
35
+ "golang.org/x/xerrors"
42
36
43
- "github.com/coder/serpent"
44
-
37
+ "cdr.dev/slog"
45
38
"github.com/coder/coder/v2/coderd/coderdtest"
46
39
"github.com/coder/coder/v2/coderd/database"
47
40
"github.com/coder/coder/v2/coderd/database/dbauthz"
@@ -55,6 +48,8 @@ import (
55
48
"github.com/coder/coder/v2/coderd/util/syncmap"
56
49
"github.com/coder/coder/v2/codersdk"
57
50
"github.com/coder/coder/v2/testutil"
51
+ "github.com/coder/quartz"
52
+ "github.com/coder/serpent"
58
53
)
59
54
60
55
// updateGoldenFiles is a flag that can be set to update golden files.
@@ -1116,9 +1111,6 @@ func TestNotificationTemplates_Golden(t *testing.T) {
1116
1111
return msg != nil && len (msg .Contents ) > 0
1117
1112
}, testutil .WaitShort , testutil .IntervalFast )
1118
1113
1119
- // require.NotNil(t, msg, "want a message to be sent")
1120
- // require.NotEmpty(t, msg.Contents, "want a non-empty message")
1121
-
1122
1114
body := normalizeGoldenEmail ([]byte (msg .Contents ))
1123
1115
1124
1116
err = smtpManager .Stop (ctx )
0 commit comments