Skip to content

Commit

Permalink
Fix integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
derekwaynecarr committed Sep 30, 2014
1 parent 02e1a2e commit de1f94c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmd/integration/integration.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func startComponents(manifestURL string) (apiServerURL string) {
}
}

cl := client.NewOrDie(apiServer.URL, "", nil)
cl := client.NewOrDie(api.NewContext(), apiServer.URL, "", nil)
cl.PollPeriod = time.Second * 1
cl.Sync = true

Expand Down Expand Up @@ -311,7 +311,7 @@ func main() {
// Wait for the synchronization threads to come up.
time.Sleep(time.Second * 10)

kubeClient := client.NewOrDie(apiServerURL, "", nil)
kubeClient := client.NewOrDie(api.NewContext(), apiServerURL, "", nil)

// Run tests in parallel
testFuncs := []testFunc{
Expand Down
2 changes: 1 addition & 1 deletion test/integration/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func TestClient(t *testing.T) {
for apiVersion, values := range testCases {
deleteAllEtcdKeys()
s := httptest.NewServer(apiserver.Handle(values.Storage, values.Codec, fmt.Sprintf("/api/%s/", apiVersion), values.selfLinker))
client := client.NewOrDie(s.URL, apiVersion, nil)
client := client.NewOrDie(api.NewContext(), s.URL, apiVersion, nil)

info, err := client.ServerVersion()
if err != nil {
Expand Down

0 comments on commit de1f94c

Please sign in to comment.