Fix api passing to test

pull/5258/head
Marcin Niemira 2019-09-11 20:37:53 +10:00
parent dde5777543
commit bd8946f316
No known key found for this signature in database
GPG Key ID: 5395D4A81A3FA475
1 changed files with 1 additions and 1 deletions

View File

@ -882,7 +882,7 @@ func TestWaitAndMaybeOpenService(t *testing.T) {
servicesMap: serviceNamespaces,
endpointsMap: endpointNamespaces,
}
err := WaitAndMaybeOpenService(defaultAPI, test.namespace, test.service, defaultTemplate, test.urlMode, test.https, 1, 0)
err := WaitAndMaybeOpenService(test.api, test.namespace, test.service, defaultTemplate, test.urlMode, test.https, 1, 0)
if test.err && err == nil {
t.Fatalf("WaitAndMaybeOpenService expected to fail for test: %v", test)
}