aboutsummaryrefslogtreecommitdiff
path: root/request_test.go
diff options
context:
space:
mode:
authorRasmus Dahlberg <rasmus.dahlberg@kau.se>2021-03-16 16:47:01 +0100
committerRasmus Dahlberg <rasmus.dahlberg@kau.se>2021-03-16 16:47:01 +0100
commit6dfaf115b3ddaa879fb2ddf6bc8aad55b936038e (patch)
treeb1cc908c65ab0473445b196e9d78b349f4c4392d /request_test.go
parent94782b6e94630c58baf908479fd659aa88e05df1 (diff)
downgraded Go version to 1.14
Diffstat (limited to 'request_test.go')
-rw-r--r--request_test.go28
1 files changed, 14 insertions, 14 deletions
diff --git a/request_test.go b/request_test.go
index 0bf68ad..102c56f 100644
--- a/request_test.go
+++ b/request_test.go
@@ -2,10 +2,10 @@ package stfe
import (
"bytes"
- "fmt"
+ //"fmt"
"reflect"
"testing"
- "testing/iotest"
+ //"testing/iotest"
"net/http"
@@ -266,18 +266,18 @@ func TestUnpackOctetPost(t *testing.T) {
out interface{}
wantErr bool
}{
- {
- description: "invalid: cannot read request body",
- req: func() *http.Request {
- req, err := http.NewRequest(http.MethodPost, "", iotest.ErrReader(fmt.Errorf("bad reader")))
- if err != nil {
- t.Fatalf("must make new http request: %v", err)
- }
- return req
- }(),
- out: &types.StItem{},
- wantErr: true,
- },
+ //{
+ // description: "invalid: cannot read request body",
+ // req: func() *http.Request {
+ // req, err := http.NewRequest(http.MethodPost, "", iotest.ErrReader(fmt.Errorf("bad reader")))
+ // if err != nil {
+ // t.Fatalf("must make new http request: %v", err)
+ // }
+ // return req
+ // }(),
+ // out: &types.StItem{},
+ // wantErr: true,
+ //}, // testcase requires Go 1.16
{
description: "invalid: cannot unmarshal",
req: func() *http.Request {