summaryrefslogtreecommitdiff
path: root/service/static/service_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'service/static/service_test.go')
-rw-r--r--service/static/service_test.go16
1 files changed, 7 insertions, 9 deletions
diff --git a/service/static/service_test.go b/service/static/service_test.go
index f0cb1bea..842e5e0b 100644
--- a/service/static/service_test.go
+++ b/service/static/service_test.go
@@ -1,19 +1,19 @@
package static
import (
- "testing"
- "github.com/sirupsen/logrus/hooks/test"
+ "bytes"
+ "encoding/json"
"github.com/sirupsen/logrus"
+ "github.com/sirupsen/logrus/hooks/test"
"github.com/spiral/roadrunner/service"
- "github.com/stretchr/testify/assert"
- "time"
rrhttp "github.com/spiral/roadrunner/service/http"
- "encoding/json"
+ "github.com/stretchr/testify/assert"
+ "io"
"io/ioutil"
"net/http"
"os"
- "bytes"
- "io"
+ "testing"
+ "time"
)
type testCfg struct {
@@ -84,7 +84,6 @@ func Test_Files(t *testing.T) {
assert.Equal(t, "sample", b)
}
-
func Test_Files_Disable(t *testing.T) {
logger, _ := test.NewNullLogger()
logger.SetLevel(logrus.DebugLevel)
@@ -256,7 +255,6 @@ func Test_Files_NotFound(t *testing.T) {
assert.Equal(t, "WORLD", b)
}
-
func Test_Files_Dir(t *testing.T) {
logger, _ := test.NewNullLogger()
logger.SetLevel(logrus.DebugLevel)