From eaf617c9aa4612463369d475de1ca193b290bb48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Wed, 5 Apr 2017 23:09:39 -0700 Subject: [PATCH] Mocking alerts isn't needed for static file tests --- views_test.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/views_test.go b/views_test.go index a55278ee2..85a0f81dd 100644 --- a/views_test.go +++ b/views_test.go @@ -363,7 +363,6 @@ var staticFileTests = []staticFileTestCase{ func TestStaticFiles(t *testing.T) { mockConfig() - mockAlerts() r := ginTestEngine() for _, staticFileTest := range staticFileTests { req, _ := http.NewRequest("GET", staticFileTest.path, nil) @@ -402,7 +401,6 @@ func TestStaticFilesPrefix(t *testing.T) { os.Setenv("WEB_PREFIX", "/sub") defer os.Unsetenv("WEB_PREFIX") mockConfig() - mockAlerts() r := ginTestEngine() for _, staticFileTest := range staticFilePrefixTests { req, _ := http.NewRequest("GET", staticFileTest.path, nil)