Fix integration test

pull/6/head
derekwaynecarr 2014-09-30 14:31:17 -04:00
parent 02e1a2e79d
commit de1f94cbc7
2 changed files with 3 additions and 3 deletions

View File

@ -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
@ -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{

View File

@ -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 {