Resolves #27. Replace import of the gock with gopkg.in/h2non/gock.v1

This commit is contained in:
ErickSkrauch 2020-08-21 18:12:31 +03:00
parent 37cc8cda32
commit 60774b6b72
No known key found for this signature in database
GPG Key ID: 669339FCBB30EE0E
4 changed files with 15 additions and 13 deletions

18
Gopkg.lock generated
View File

@ -83,14 +83,6 @@
revision = "c5c6c98bc25355028a63748a498942a6398ccd22" revision = "c5c6c98bc25355028a63748a498942a6398ccd22"
version = "v1.7.1" version = "v1.7.1"
[[projects]]
digest = "1:5eeb4bfc6db411dbb34a6d9e5d49a9956b160d59fd004ee8f03fe53c9605c082"
name = "github.com/h2non/gock"
packages = ["."]
pruneopts = ""
revision = "ba88c4862a27596539531ce469478a91bc5a0511"
version = "v1.0.14"
[[projects]] [[projects]]
digest = "1:0f31ddb2589297fc1d716f45b34e34bff34e968de1aa239543274c87522e86f4" digest = "1:0f31ddb2589297fc1d716f45b34e34bff34e968de1aa239543274c87522e86f4"
name = "github.com/h2non/parth" name = "github.com/h2non/parth"
@ -308,6 +300,14 @@
pruneopts = "" pruneopts = ""
revision = "bd91bbf73e9a4a801adbfb97133c992678533126" revision = "bd91bbf73e9a4a801adbfb97133c992678533126"
[[projects]]
digest = "1:2a7fe9cf6ed8bca3f0ef319592db1621ce244e7ffefba3c2c21ee40d6898a9c8"
name = "gopkg.in/h2non/gock.v1"
packages = ["."]
pruneopts = ""
revision = "3ffff9b1aa8200275a5eb219c5f9c62bd27acb31"
version = "v1.0.15"
[[projects]] [[projects]]
branch = "v2" branch = "v2"
digest = "1:81314a486195626940617e43740b4fa073f265b0715c9f54ce2027fee1cb5f61" digest = "1:81314a486195626940617e43740b4fa073f265b0715c9f54ce2027fee1cb5f61"
@ -327,7 +327,6 @@
"github.com/getsentry/raven-go", "github.com/getsentry/raven-go",
"github.com/goava/di", "github.com/goava/di",
"github.com/gorilla/mux", "github.com/gorilla/mux",
"github.com/h2non/gock",
"github.com/mediocregopher/radix.v2/pool", "github.com/mediocregopher/radix.v2/pool",
"github.com/mediocregopher/radix.v2/redis", "github.com/mediocregopher/radix.v2/redis",
"github.com/mediocregopher/radix.v2/util", "github.com/mediocregopher/radix.v2/util",
@ -345,6 +344,7 @@
"github.com/stretchr/testify/require", "github.com/stretchr/testify/require",
"github.com/stretchr/testify/suite", "github.com/stretchr/testify/suite",
"github.com/thedevsaddam/govalidator", "github.com/thedevsaddam/govalidator",
"gopkg.in/h2non/gock.v1",
] ]
solver-name = "gps-cdcl" solver-name = "gps-cdcl"
solver-version = 1 solver-version = 1

View File

@ -52,5 +52,5 @@ ignored = ["github.com/elyby/chrly"]
version = "^1.3.0" version = "^1.3.0"
[[constraint]] [[constraint]]
name = "github.com/h2non/gock" name = "gopkg.in/h2non/gock.v1"
version = "^1.0.6" version = "^1.0.15"

View File

@ -4,7 +4,8 @@ import (
"net/http" "net/http"
"testing" "testing"
"github.com/h2non/gock" "gopkg.in/h2non/gock.v1"
testify "github.com/stretchr/testify/assert" testify "github.com/stretchr/testify/assert"
) )

View File

@ -6,7 +6,8 @@ import (
. "net/url" . "net/url"
"testing" "testing"
"github.com/h2non/gock" "gopkg.in/h2non/gock.v1"
"github.com/stretchr/testify/mock" "github.com/stretchr/testify/mock"
"github.com/stretchr/testify/suite" "github.com/stretchr/testify/suite"
) )