Skip to content

Commit 5a113df

Browse files
committed
unit test fix
1 parent d6aeb9c commit 5a113df

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmd/cloudFoundryCreateService_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func TestCloudFoundryCreateService(t *testing.T) {
6464
error := runCloudFoundryCreateService(&config, &telemetryData, cf)
6565
if assert.NoError(t, error) {
6666
assert.Equal(t, []mock.ExecCall{{Execution: (*mock.Execution)(nil), Async: false, Exec: "cf", Params: []string{"login", "-a", "https://api.endpoint.com", "-o", "testOrg", "-s", "testSpace", "-u", "testUser", "-p", "testPassword"}},
67-
{Execution: (*mock.Execution)(nil), Async: false, Exec: "cf", Params: []string{"create-service", "testService", "testPlan", "testName", "-t", "testTag, testTag2"}},
67+
{Execution: (*mock.Execution)(nil), Async: false, Exec: "cf", Params: []string{"create-service", "testService", "testPlan", "testName", "-t", "testTag, testTag2", "--wait"}},
6868
{Execution: (*mock.Execution)(nil), Async: false, Exec: "cf", Params: []string{"logout"}}},
6969
m.Calls)
7070
}
@@ -86,7 +86,7 @@ func TestCloudFoundryCreateService(t *testing.T) {
8686
error := runCloudFoundryCreateService(&config, &telemetryData, cf)
8787
if assert.NoError(t, error) {
8888
assert.Equal(t, []mock.ExecCall{{Execution: (*mock.Execution)(nil), Async: false, Exec: "cf", Params: []string{"login", "-a", "https://api.endpoint.com", "-o", "testOrg", "-s", "testSpace", "-u", "testUser", "-p", "testPassword"}},
89-
{Execution: (*mock.Execution)(nil), Async: false, Exec: "cf", Params: []string{"create-service", "testService", "testPlan", "testName", "-b", "testBroker"}},
89+
{Execution: (*mock.Execution)(nil), Async: false, Exec: "cf", Params: []string{"create-service", "testService", "testPlan", "testName", "-b", "testBroker", "--wait"}},
9090
{Execution: (*mock.Execution)(nil), Async: false, Exec: "cf", Params: []string{"logout"}}},
9191
m.Calls)
9292
}
@@ -108,7 +108,7 @@ func TestCloudFoundryCreateService(t *testing.T) {
108108
error := runCloudFoundryCreateService(&config, &telemetryData, cf)
109109
if assert.NoError(t, error) {
110110
assert.Equal(t, []mock.ExecCall{{Execution: (*mock.Execution)(nil), Async: false, Exec: "cf", Params: []string{"login", "-a", "https://api.endpoint.com", "-o", "testOrg", "-s", "testSpace", "-u", "testUser", "-p", "testPassword"}},
111-
{Execution: (*mock.Execution)(nil), Async: false, Exec: "cf", Params: []string{"create-service", "testService", "testPlan", "testName", "-c", "testConfig.json"}},
111+
{Execution: (*mock.Execution)(nil), Async: false, Exec: "cf", Params: []string{"create-service", "testService", "testPlan", "testName", "-c", "testConfig.json", "--wait"}},
112112
{Execution: (*mock.Execution)(nil), Async: false, Exec: "cf", Params: []string{"logout"}}},
113113
m.Calls)
114114
}

0 commit comments

Comments
 (0)