Github user dragos commented on a diff in the pull request:

    https://github.com/apache/spark/pull/7471#discussion_r34976755
  
    --- Diff: 
streaming/src/test/scala/org/apache/spark/streaming/TestSuiteBase.scala ---
    @@ -537,4 +537,19 @@ trait TestSuiteBase extends SparkFunSuite with 
BeforeAndAfter with Logging {
           verifyOutput[W](output, expectedOutput, useSet)
         }
       }
    +
    +  /**
    +   * Wait until `cond` becomes true, or timeout ms have passed. This 
method checks the condition
    +   * every 100ms, so it won't wait more than 100ms more than necessary.
    +   *
    +   * @param cond     A boolean that should become `true`
    +   * @param timemout How many millis to wait before giving up
    +   */
    +  def waitUntil(cond: => Boolean, timeout: Int): Unit = {
    --- End diff --
    
    cool, thanks!


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to