@@ -171,17 +171,16 @@ var _ = Describe("service command", func() {
171
171
})
172
172
173
173
It ("displays the bound apps" , func () {
174
- //Delay to reduce flakiness
175
- time .Sleep (10 * time .Second )
176
- session := helpers .CF (serviceCommand , serviceInstanceName , "-v" )
177
- Eventually (session ).Should (Exit (0 ))
178
-
179
- Expect (session ).To (SatisfyAll (
180
- Say (`Showing bound apps:\n` ),
181
- Say (`name\s+binding name\s+status\s+message\n` ),
182
- Say (`%s\s+%s\s+create succeeded\s*\n` , appName1 , bindingName1 ),
183
- Say (`%s\s+%s\s+create succeeded\s*\n` , appName2 , bindingName2 ),
184
- ))
174
+ Eventually (func (g Gomega ) {
175
+ session := helpers .CF (serviceCommand , serviceInstanceName , "-v" ).Wait ()
176
+ g .Expect (session ).Should (Exit (0 ))
177
+ g .Expect (session ).Should (SatisfyAll (
178
+ Say (`Showing bound apps:\n` ),
179
+ Say (`name\s+binding name\s+status\s+message\n` ),
180
+ ContainSubstring (`%s\s+%s\s+create succeeded\s*\n` , appName1 , bindingName1 ),
181
+ ContainSubstring (`%s\s+%s\s+create succeeded\s*\n` , appName2 , bindingName2 ),
182
+ ))
183
+ }).Should (Succeed ())
185
184
})
186
185
})
187
186
0 commit comments