This is an automated email from the ASF dual-hosted git repository.
japetrsn pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-cli.git
The following commit(s) were added to refs/heads/master by this push:
new d19adcd Add retries to log integration test (#287)
d19adcd is described below
commit d19adcdd894cd08a137071291db1d8be207d173b
Author: James Dubee <[email protected]>
AuthorDate: Wed May 2 10:21:12 2018 -0400
Add retries to log integration test (#287)
---
.../whisk/core/cli/test/WskCliBasicUsageTests.scala | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)
diff --git
a/tests/src/test/scala/whisk/core/cli/test/WskCliBasicUsageTests.scala
b/tests/src/test/scala/whisk/core/cli/test/WskCliBasicUsageTests.scala
index dff7897..245e955 100644
--- a/tests/src/test/scala/whisk/core/cli/test/WskCliBasicUsageTests.scala
+++ b/tests/src/test/scala/whisk/core/cli/test/WskCliBasicUsageTests.scala
@@ -392,13 +392,15 @@ class WskCliBasicUsageTests extends TestHelpers with
WskTestHelpers {
}
withActivation(wsk.activation, wsk.action.invoke(name)) { activation =>
- val cmd = Seq("activation", "logs", "--strip", activation.activationId)
- val run = wsk.cli(cmd ++ wskprops.overrides ++ auth,
- expectedExitCode = SUCCESS_EXIT)
- run.stdout should {
- be("this is stdout\nthis is stderr\n") or
- be("this is stderr\nthis is stdout\n")
- }
+ retry({
+ val cmd = Seq("activation", "logs", "--strip",
activation.activationId)
+ val run = wsk.cli(cmd ++ wskprops.overrides ++ auth,
+ expectedExitCode = SUCCESS_EXIT)
+ run.stdout should {
+ be("this is stdout\nthis is stderr\n") or
+ be("this is stderr\nthis is stdout\n")
+ }
+ }, 10, Some(1.second))
}
}
--
To stop receiving notification emails like this one, please contact
[email protected].