Github user zsxwing commented on a diff in the pull request:
https://github.com/apache/spark/pull/7823#discussion_r35956779
--- Diff:
streaming/src/test/scala/org/apache/spark/streaming/StreamingContextSuite.scala
---
@@ -270,11 +270,12 @@ class StreamingContextSuite extends SparkFunSuite
with BeforeAndAfter with Timeo
logInfo("Count = " + count + ", Running count = " + runningCount)
}
ssc.start()
- ssc.awaitTerminationOrTimeout(500)
+ eventually(timeout(10.seconds), interval(10.millis)) {
+ assert(runningCount > 0)
+ }
ssc.stop(stopSparkContext = false, stopGracefully = true)
logInfo("Running count = " + runningCount)
logInfo("TestReceiver.counter = " + TestReceiver.counter.get())
- assert(runningCount > 0)
assert(
(TestReceiver.counter.get() == runningCount + 1) ||
(TestReceiver.counter.get() == runningCount + 2),
--- End diff --
Okey. I think it's impossible to be true so I'm going to remove it.
---
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]