@@ -33,7 +33,7 @@ func TestCloudFoundryCreateServiceKey(t *testing.T) {
33
33
error := runCloudFoundryCreateServiceKey (& config , & telemetryData , & execRunner , & cfUtilsMock )
34
34
if error == nil {
35
35
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 )
37
37
}
38
38
})
39
39
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) {
55
55
error := runCloudFoundryCreateServiceKey (& config , & telemetryData , & execRunner , & cfUtilsMock )
56
56
if error == nil {
57
57
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 )
59
59
}
60
60
})
61
61
t .Run ("CF Create Service Key synchronous with service Key config: Success case" , func (t * testing.T ) {
0 commit comments