aboutsummaryrefslogtreecommitdiff
path: root/request_test.go
diff options
context:
space:
mode:
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 {