Skip to content

Commit ca0b07d

Browse files
committed
Change the variable name.
1 parent 5dfdfca commit ca0b07d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tests/src/test/scala/common/RunCliCmd.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ trait RunCliCmd extends Matchers {
6666
stdinFile: Option[File] = None,
6767
showCmd: Boolean = false,
6868
hideFromOutput: Seq[String] = Seq.empty,
69-
retriesOnNetworkError: Int = 3): RunResult = {
70-
require(retriesOnNetworkError >= 0, "retry count on network error must not be negative")
69+
retriesOnError: Int = 3): RunResult = {
70+
require(retriesOnError >= 0, "retry count on network error must not be negative")
7171

7272
val args = baseCommand
7373
if (verbose) args += "--verbose"
@@ -79,7 +79,7 @@ trait RunCliCmd extends Matchers {
7979
if (showCmd) println(args.mkString(" "))
8080

8181
val rr =
82-
retry(0, retriesOnNetworkError, () => runCmd(DONTCARE_EXIT, workingDir, sys.env ++ env, stdinFile, args.toSeq))
82+
retry(0, retriesOnError, () => runCmd(DONTCARE_EXIT, workingDir, sys.env ++ env, stdinFile, args.toSeq))
8383

8484
withClue(hideStr(reportFailure(args, expectedExitCode, rr).toString(), hideFromOutput)) {
8585
if (expectedExitCode != TestUtils.DONTCARE_EXIT) {

tests/src/test/scala/org/apache/openwhisk/common/RunCliCmdTests.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class RunCliCmdTests extends FlatSpec with RunCliCmd with BeforeAndAfterEach {
6868
it should "not retry commands if retry is disabled" in {
6969
rr = Some(TestRunResult(NETWORK_ERROR_EXIT))
7070
noException shouldBe thrownBy {
71-
cli(Seq.empty, expectedExitCode = ANY_ERROR_EXIT, retriesOnNetworkError = 0)
71+
cli(Seq.empty, expectedExitCode = ANY_ERROR_EXIT, retriesOnError = 0)
7272
}
7373

7474
cmdCount shouldBe 1
@@ -80,7 +80,7 @@ class RunCliCmdTests extends FlatSpec with RunCliCmd with BeforeAndAfterEach {
8080

8181
rr = Some(TestRunResult(code))
8282
noException shouldBe thrownBy {
83-
cli(Seq.empty, expectedExitCode = DONTCARE_EXIT, retriesOnNetworkError = 3)
83+
cli(Seq.empty, expectedExitCode = DONTCARE_EXIT, retriesOnError = 3)
8484
}
8585

8686
cmdCount shouldBe 4

0 commit comments

Comments
 (0)