diff options
| author | Shulhan <ms@kilabit.info> | 2018-12-17 15:24:41 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2018-12-17 15:24:41 +0700 |
| commit | f20ce230945e529fff6dfcb153440ce15d7e8071 (patch) | |
| tree | 2a128529b28774450059e0c801f8cafbf553840d /lib/http/server_test.go | |
| parent | 0612b6994c3bead0f779876919dde7af64366680 (diff) | |
| download | pakakeh.go-f20ce230945e529fff6dfcb153440ce15d7e8071.tar.xz | |
lib/http: replace status error with package "lib/errors"
Diffstat (limited to 'lib/http/server_test.go')
| -rw-r--r-- | lib/http/server_test.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/http/server_test.go b/lib/http/server_test.go index 44b26797..d484a862 100644 --- a/lib/http/server_test.go +++ b/lib/http/server_test.go @@ -13,6 +13,7 @@ import ( "os" "testing" + "github.com/shuLhan/share/lib/errors" "github.com/shuLhan/share/lib/memfs" "github.com/shuLhan/share/lib/test" ) @@ -513,13 +514,13 @@ func TestServeHTTPOptions(t *testing.T) { func TestStatusError(t *testing.T) { cbError := func(req *http.Request, reqBody []byte) ([]byte, error) { - return nil, &StatusError{ + return nil, &errors.E{ Code: http.StatusLengthRequired, Message: "Length required", } } cbNoCode := func(req *http.Request, reqBody []byte) ([]byte, error) { - return nil, &StatusError{ + return nil, &errors.E{ Message: "Internal server error", } } |
