Skip to content

Commit 5ab9bdf

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/cloudFoundryCreateServiceKey_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func TestCloudFoundryCreateServiceKey(t *testing.T) {
3333
error := runCloudFoundryCreateServiceKey(&config, &telemetryData, &execRunner, &cfUtilsMock)
3434
if error == nil {
3535
assert.Equal(t, "cf", execRunner.Calls[0].Exec)
36-
assert.Equal(t, []string{"create-service-key", "testInstance", "testKey"}, execRunner.Calls[0].Params)
36+
assert.Equal(t, []string{"create-service-key", "testInstance", "testKey", "--wait"}, execRunner.Calls[0].Params)
3737
}
3838
})
3939
t.Run("CF Create Service Key asynchronous with service Key config: Success case", func(t *testing.T) {
@@ -55,7 +55,7 @@ func TestCloudFoundryCreateServiceKey(t *testing.T) {
5555
error := runCloudFoundryCreateServiceKey(&config, &telemetryData, &execRunner, &cfUtilsMock)
5656
if error == nil {
5757
assert.Equal(t, "cf", execRunner.Calls[0].Exec)
58-
assert.Equal(t, []string{"create-service-key", "testInstance", "testKey", "-c", "testconfig.yml"}, execRunner.Calls[0].Params)
58+
assert.Equal(t, []string{"create-service-key", "testInstance", "testKey", "-c", "testconfig.yml", "--wait"}, execRunner.Calls[0].Params)
5959
}
6060
})
6161
t.Run("CF Create Service Key synchronous with service Key config: Success case", func(t *testing.T) {

0 commit comments

Comments
 (0)