From a111c672416ef1753bc89a2a9c4b4afa8737a432 Mon Sep 17 00:00:00 2001 From: "Gerasimos (Makis) Maropoulos" Date: Wed, 6 May 2020 21:08:12 +0300 Subject: [PATCH] use a custom version of httpexpect which removes things that Iris or its users not use at all in order to reduce the download filesize Former-commit-id: 993107d0fa40b5e423962b58aa924b712644f18c --- cache/cache_test.go | 2 +- core/host/supervisor_test.go | 2 +- go.mod | 2 +- httptest/aliases.go | 2 +- httptest/httptest.go | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cache/cache_test.go b/cache/cache_test.go index e00e72a7..94703428 100644 --- a/cache/cache_test.go +++ b/cache/cache_test.go @@ -14,7 +14,7 @@ import ( "github.com/kataras/iris/v12" "github.com/kataras/iris/v12/context" - "github.com/gavv/httpexpect" + "github.com/iris-contrib/httpexpect/v2" "github.com/kataras/iris/v12/httptest" ) diff --git a/core/host/supervisor_test.go b/core/host/supervisor_test.go index 620ee4b4..e93ce293 100644 --- a/core/host/supervisor_test.go +++ b/core/host/supervisor_test.go @@ -12,7 +12,7 @@ import ( "strings" "testing" - "github.com/gavv/httpexpect" + "github.com/iris-contrib/httpexpect/v2" ) const ( diff --git a/go.mod b/go.mod index 9b951252..a866aa9a 100644 --- a/go.mod +++ b/go.mod @@ -10,7 +10,7 @@ require ( github.com/dgraph-io/badger/v2 v2.0.3 github.com/eknkc/amber v0.0.0-20171010120322-cdade1c07385 github.com/fatih/structs v1.1.0 - github.com/gavv/httpexpect v2.0.0+incompatible + github.com/iris-contrib/httpexpect/v2 v2.0.5 github.com/golang/protobuf v1.4.0 github.com/gomodule/redigo v1.8.0 github.com/hashicorp/go-version v1.2.0 diff --git a/httptest/aliases.go b/httptest/aliases.go index 05abb22f..ecb5c0fe 100644 --- a/httptest/aliases.go +++ b/httptest/aliases.go @@ -1,6 +1,6 @@ package httptest -import "github.com/gavv/httpexpect" +import "github.com/iris-contrib/httpexpect/v2" type ( // Request type alias. diff --git a/httptest/httptest.go b/httptest/httptest.go index a6685698..a7bd3f4a 100644 --- a/httptest/httptest.go +++ b/httptest/httptest.go @@ -7,7 +7,7 @@ import ( "github.com/kataras/iris/v12" - "github.com/gavv/httpexpect" + "github.com/iris-contrib/httpexpect/v2" ) type (