summaryrefslogtreecommitdiffstats
path: root/app/email_batching_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'app/email_batching_test.go')
-rw-r--r--app/email_batching_test.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/email_batching_test.go b/app/email_batching_test.go
index b69eeec2d..4ebccf334 100644
--- a/app/email_batching_test.go
+++ b/app/email_batching_test.go
@@ -14,6 +14,7 @@ import (
func TestHandleNewNotifications(t *testing.T) {
th := Setup()
+ defer th.TearDown()
id1 := model.NewId()
id2 := model.NewId()
@@ -94,6 +95,7 @@ func TestHandleNewNotifications(t *testing.T) {
func TestCheckPendingNotifications(t *testing.T) {
th := Setup().InitBasic()
+ defer th.TearDown()
job := NewEmailBatchingJob(th.App, 128)
job.pendingNotifications[th.BasicUser.Id] = []*batchedNotification{
@@ -201,6 +203,8 @@ func TestCheckPendingNotifications(t *testing.T) {
*/
func TestCheckPendingNotificationsDefaultInterval(t *testing.T) {
th := Setup().InitBasic()
+ defer th.TearDown()
+
job := NewEmailBatchingJob(th.App, 128)
// bypasses recent user activity check
@@ -237,6 +241,8 @@ func TestCheckPendingNotificationsDefaultInterval(t *testing.T) {
*/
func TestCheckPendingNotificationsCantParseInterval(t *testing.T) {
th := Setup().InitBasic()
+ defer th.TearDown()
+
job := NewEmailBatchingJob(th.App, 128)
// bypasses recent user activity check
@@ -281,6 +287,8 @@ func TestCheckPendingNotificationsCantParseInterval(t *testing.T) {
*/
func TestRenderBatchedPostGeneric(t *testing.T) {
th := Setup()
+ defer th.TearDown()
+
var post = &model.Post{}
post.Message = "This is the message"
var notification = &batchedNotification{}
@@ -306,6 +314,8 @@ func TestRenderBatchedPostGeneric(t *testing.T) {
*/
func TestRenderBatchedPostFull(t *testing.T) {
th := Setup()
+ defer th.TearDown()
+
var post = &model.Post{}
post.Message = "This is the message"
var notification = &batchedNotification{}