Skip to content

Commit

Permalink
[SPARK-23197][DSTREAMS] Increased timeouts to resolve flakiness
Browse files Browse the repository at this point in the history
## What changes were proposed in this pull request?

Increased timeout from 50 ms to 300 ms (50 ms was really too low).

## How was this patch tested?
Multiple rounds of tests.

Author: Tathagata Das <tathagata.das1565@gmail.com>

Closes #20371 from tdas/SPARK-23197.
  • Loading branch information
tdas committed Jan 24, 2018
1 parent 44cc4da commit 15adcc8
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -105,13 +105,13 @@ class ReceiverSuite extends TestSuiteBase with TimeLimits with Serializable {
assert(executor.errors.head.eq(exception))

// Verify restarting actually stops and starts the receiver
receiver.restart("restarting", null, 100)
eventually(timeout(50 millis), interval(10 millis)) {
receiver.restart("restarting", null, 600)
eventually(timeout(300 millis), interval(10 millis)) {
// receiver will be stopped async
assert(receiver.isStopped)
assert(receiver.onStopCalled)
}
eventually(timeout(1000 millis), interval(100 millis)) {
eventually(timeout(1000 millis), interval(10 millis)) {
// receiver will be started async
assert(receiver.onStartCalled)
assert(executor.isReceiverStarted)
Expand Down

0 comments on commit 15adcc8

Please sign in to comment.