Skip to content

Commit

Permalink
fix: typo in TestBase (#1501)
Browse files Browse the repository at this point in the history
Co-authored-by: Puneet Pruthi <ppruthi@microsoft.com>
  • Loading branch information
ppruthi and Puneet Pruthi authored May 6, 2022
1 parent 74c22b5 commit f232058
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ trait LinuxOnly extends TestBase {

trait Flaky extends TestBase {

val retyMillis: Array[Int] = Array(0, 1000, 5000)
val retryMillis: Array[Int] = Array(0, 1000, 5000)

override def test(testName: String, testTags: Tag*)(testFun: => Any)(implicit pos: Position): Unit = {
super.test(testName, testTags: _*) {
tryWithRetries(retyMillis)(testFun _)
tryWithRetries(retryMillis)(testFun _)
}
}

Expand All @@ -76,11 +76,11 @@ trait TimeLimitedFlaky extends TestBase with TimeLimits {

val timeoutInSeconds: Int = 5 * 60

val retyMillis: Array[Int] = Array(0, 100, 100)
val retryMillis: Array[Int] = Array(0, 100, 100)

override def test(testName: String, testTags: Tag*)(testFun: => Any)(implicit pos: Position): Unit = {
super.test(testName, testTags: _*) {
tryWithRetries(retyMillis) {
tryWithRetries(retryMillis) {
failAfter(Span(timeoutInSeconds, Seconds)) {
println("Executing time-limited flaky function")
testFun _
Expand Down

0 comments on commit f232058

Please sign in to comment.