Mocking alerts isn't needed for static file tests

This commit is contained in:
Łukasz Mierzwa
2017-04-06 19:24:47 -07:00
parent 3691b1667c
commit eaf617c9aa
-2
View File
@@ -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)