aboutsummaryrefslogtreecommitdiff
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
parent94782b6e94630c58baf908479fd659aa88e05df1 (diff)
downgraded Go version to 1.14
-rw-r--r--go.mod8
-rw-r--r--go.sum4
-rw-r--r--request_test.go28
3 files changed, 20 insertions, 20 deletions
diff --git a/go.mod b/go.mod
index 2e88d16..788e473 100644
--- a/go.mod
+++ b/go.mod
@@ -1,13 +1,13 @@
module github.com/system-transparency/stfe
-go 1.16
+go 1.14
require (
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b
github.com/golang/mock v1.4.4
github.com/google/certificate-transparency-go v1.1.1
github.com/google/trillian v1.3.13
- github.com/prometheus/client_golang v1.9.0 // indirect
- golang.org/x/net v0.0.0-20200625001655-4c5254603344 // indirect
- google.golang.org/grpc v1.35.0
+ github.com/prometheus/client_golang v1.9.0
+ golang.org/x/net v0.0.0-20200625001655-4c5254603344
+ google.golang.org/grpc v1.36.0
)
diff --git a/go.sum b/go.sum
index 7a22d0c..68617e4 100644
--- a/go.sum
+++ b/go.sum
@@ -722,8 +722,8 @@ google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8
google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60=
google.golang.org/grpc v1.29.0/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk=
google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk=
-google.golang.org/grpc v1.35.0 h1:TwIQcH3es+MojMVojxxfQ3l3OF2KzlRxML2xZq0kRo8=
-google.golang.org/grpc v1.35.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU=
+google.golang.org/grpc v1.36.0 h1:o1bcQ6imQMIOpdrO3SWf2z5RV72WbDwdXuK0MDlc8As=
+google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU=
google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=
google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0=
google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM=
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 {