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.go15
1 files changed, 7 insertions, 8 deletions
diff --git a/service/static/service_test.go b/service/static/service_test.go
index 842662c9..bbab86c2 100644
--- a/service/static/service_test.go
+++ b/service/static/service_test.go
@@ -2,18 +2,19 @@ package static
import (
"bytes"
- json "github.com/json-iterator/go"
- "github.com/sirupsen/logrus"
- "github.com/sirupsen/logrus/hooks/test"
- "github.com/spiral/roadrunner/service"
- rrhttp "github.com/spiral/roadrunner/service/http"
- "github.com/stretchr/testify/assert"
"io"
"io/ioutil"
"net/http"
"os"
"testing"
"time"
+
+ json "github.com/json-iterator/go"
+ "github.com/sirupsen/logrus"
+ "github.com/sirupsen/logrus/hooks/test"
+ "github.com/spiral/roadrunner/service"
+ rrhttp "github.com/spiral/roadrunner/service/http"
+ "github.com/stretchr/testify/assert"
)
type testCfg struct {
@@ -75,7 +76,6 @@ func Test_Files(t *testing.T) {
time.Sleep(time.Second)
-
b, _, _ := get("http://localhost:8029/sample.txt")
assert.Equal(t, "sample", b)
c.Stop()
@@ -475,7 +475,6 @@ func TestStatic_Headers(t *testing.T) {
t.Fatal("can't find output header in response")
}
-
b, err := ioutil.ReadAll(resp.Body)
if err != nil {
t.Fatal(err)