Skip to content

Commit 7eb2aca

Browse files
grokifywing328
authored andcommitted
update go client test dependencies (#468)
1 parent 0bffdf2 commit 7eb2aca

4 files changed

Lines changed: 8 additions & 9 deletions

File tree

samples/client/petstore/go/auth_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
package main
22

33
import (
4+
"context"
45
"net/http"
56
"net/http/httputil"
67
"strings"
78
"testing"
89
"time"
910

10-
"golang.org/x/net/context"
11-
1211
"golang.org/x/oauth2"
1312

1413
sw "./go-petstore"

samples/client/petstore/go/pet_api_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
package main
22

33
import (
4+
"context"
45
"fmt"
56
"os"
67
"testing"
78

8-
sw "./go-petstore"
9-
"golang.org/x/net/context"
10-
119
"github.com/antihax/optional"
1210
"github.com/stretchr/testify/assert"
11+
12+
sw "./go-petstore"
1313
)
1414

1515
var client *sw.APIClient

samples/client/petstore/go/store_api_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
package main
22

33
import (
4+
"context"
45
"testing"
56
"time"
67

78
sw "./go-petstore"
8-
"golang.org/x/net/context"
99
)
1010

1111
func TestPlaceOrder(t *testing.T) {

samples/client/petstore/go/user_api_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
package main
22

33
import (
4+
"context"
45
"testing"
56

6-
sw "./go-petstore"
7-
"golang.org/x/net/context"
8-
97
"github.com/stretchr/testify/assert"
8+
9+
sw "./go-petstore"
1010
)
1111

1212
func TestCreateUser(t *testing.T) {

0 commit comments

Comments
 (0)