pnowojski commented on a change in pull request #8858: [hotfix][tests] Change
some StreamTask tests to create a test task in the task's thread
URL: https://github.com/apache/flink/pull/8858#discussion_r297160285
##########
File path:
flink-streaming-java/src/test/java/org/apache/flink/streaming/runtime/tasks/StreamTaskTestHarness.java
##########
@@ -288,31 +290,24 @@ public void waitForTaskRunning() throws Exception {
* @throws Exception
*/
public void waitForTaskRunning(long timeout) throws Exception {
- if (taskThread == null) {
+ if (taskThread == null || taskThread.task == null) {
Review comment:
nit: change to `checkState`?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services