diff options
author | Valery Piashchynski <[email protected]> | 2021-01-11 13:00:52 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-01-11 13:00:52 +0300 |
commit | c4112cd214a9c7cbed82c82eefc75904fb42d1af (patch) | |
tree | 680cc5f0d3f9a0d78a944e026568af61c12bd87e /service/static/service_test.go | |
parent | 5dc83ef5eee77f4d1ef557e5f8b566e75892680d (diff) |
Update CI
Format imports and code
Distinct internal and app errors
Diffstat (limited to 'service/static/service_test.go')
-rw-r--r-- | service/static/service_test.go | 15 |
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) |