From 7eb2acaf7107a1104d5416567884b32da32ff54b Mon Sep 17 00:00:00 2001 From: John Wang Date: Thu, 5 Jul 2018 05:34:32 -0700 Subject: [PATCH] update go client test dependencies (#468) --- samples/client/petstore/go/auth_test.go | 3 +-- samples/client/petstore/go/pet_api_test.go | 6 +++--- samples/client/petstore/go/store_api_test.go | 2 +- samples/client/petstore/go/user_api_test.go | 6 +++--- 4 files changed, 8 insertions(+), 9 deletions(-) diff --git a/samples/client/petstore/go/auth_test.go b/samples/client/petstore/go/auth_test.go index 1395bff6b1..ab152c98d1 100644 --- a/samples/client/petstore/go/auth_test.go +++ b/samples/client/petstore/go/auth_test.go @@ -1,14 +1,13 @@ package main import ( + "context" "net/http" "net/http/httputil" "strings" "testing" "time" - "golang.org/x/net/context" - "golang.org/x/oauth2" sw "./go-petstore" diff --git a/samples/client/petstore/go/pet_api_test.go b/samples/client/petstore/go/pet_api_test.go index e6e5ba561a..dd28f689af 100644 --- a/samples/client/petstore/go/pet_api_test.go +++ b/samples/client/petstore/go/pet_api_test.go @@ -1,15 +1,15 @@ package main import ( + "context" "fmt" "os" "testing" - sw "./go-petstore" - "golang.org/x/net/context" - "github.com/antihax/optional" "github.com/stretchr/testify/assert" + + sw "./go-petstore" ) var client *sw.APIClient diff --git a/samples/client/petstore/go/store_api_test.go b/samples/client/petstore/go/store_api_test.go index 0a0a70291e..0e1a2f06c6 100644 --- a/samples/client/petstore/go/store_api_test.go +++ b/samples/client/petstore/go/store_api_test.go @@ -1,11 +1,11 @@ package main import ( + "context" "testing" "time" sw "./go-petstore" - "golang.org/x/net/context" ) func TestPlaceOrder(t *testing.T) { diff --git a/samples/client/petstore/go/user_api_test.go b/samples/client/petstore/go/user_api_test.go index 1fe5d2937e..67995a160a 100644 --- a/samples/client/petstore/go/user_api_test.go +++ b/samples/client/petstore/go/user_api_test.go @@ -1,12 +1,12 @@ package main import ( + "context" "testing" - sw "./go-petstore" - "golang.org/x/net/context" - "github.com/stretchr/testify/assert" + + sw "./go-petstore" ) func TestCreateUser(t *testing.T) {