Skip to content

Commit d19adcd

Browse files
dubeeJason Peterson
authored andcommitted
Add retries to log integration test (#287)
1 parent 6a79a69 commit d19adcd

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

tests/src/test/scala/whisk/core/cli/test/WskCliBasicUsageTests.scala

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -392,13 +392,15 @@ class WskCliBasicUsageTests extends TestHelpers with WskTestHelpers {
392392
}
393393

394394
withActivation(wsk.activation, wsk.action.invoke(name)) { activation =>
395-
val cmd = Seq("activation", "logs", "--strip", activation.activationId)
396-
val run = wsk.cli(cmd ++ wskprops.overrides ++ auth,
397-
expectedExitCode = SUCCESS_EXIT)
398-
run.stdout should {
399-
be("this is stdout\nthis is stderr\n") or
400-
be("this is stderr\nthis is stdout\n")
401-
}
395+
retry({
396+
val cmd = Seq("activation", "logs", "--strip", activation.activationId)
397+
val run = wsk.cli(cmd ++ wskprops.overrides ++ auth,
398+
expectedExitCode = SUCCESS_EXIT)
399+
run.stdout should {
400+
be("this is stdout\nthis is stderr\n") or
401+
be("this is stderr\nthis is stdout\n")
402+
}
403+
}, 10, Some(1.second))
402404
}
403405
}
404406

0 commit comments

Comments
 (0)