update go client test dependencies (#468)

This commit is contained in:
John Wang 2018-07-05 05:34:32 -07:00 committed by William Cheng
parent 0bffdf2463
commit 7eb2acaf71
4 changed files with 8 additions and 9 deletions

View File

@ -1,14 +1,13 @@
package main package main
import ( import (
"context"
"net/http" "net/http"
"net/http/httputil" "net/http/httputil"
"strings" "strings"
"testing" "testing"
"time" "time"
"golang.org/x/net/context"
"golang.org/x/oauth2" "golang.org/x/oauth2"
sw "./go-petstore" sw "./go-petstore"

View File

@ -1,15 +1,15 @@
package main package main
import ( import (
"context"
"fmt" "fmt"
"os" "os"
"testing" "testing"
sw "./go-petstore"
"golang.org/x/net/context"
"github.com/antihax/optional" "github.com/antihax/optional"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
sw "./go-petstore"
) )
var client *sw.APIClient var client *sw.APIClient

View File

@ -1,11 +1,11 @@
package main package main
import ( import (
"context"
"testing" "testing"
"time" "time"
sw "./go-petstore" sw "./go-petstore"
"golang.org/x/net/context"
) )
func TestPlaceOrder(t *testing.T) { func TestPlaceOrder(t *testing.T) {

View File

@ -1,12 +1,12 @@
package main package main
import ( import (
"context"
"testing" "testing"
sw "./go-petstore"
"golang.org/x/net/context"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
sw "./go-petstore"
) )
func TestCreateUser(t *testing.T) { func TestCreateUser(t *testing.T) {