mirror of
https://github.com/prymitive/karma
synced 2026-05-05 03:16:51 +00:00
Mocking alerts isn't needed for static file tests
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user