Github user kl0u commented on a diff in the pull request:
https://github.com/apache/flink/pull/4980#discussion_r149984491
--- Diff:
flink-runtime/src/test/java/org/apache/flink/runtime/taskmanager/TaskAsyncCallTest.java
---
@@ -277,8 +287,12 @@ public void invoke() throws Exception {
}
}
- triggerLatch.trigger();
if (error != null) {
+ // exit method prematurely due to error but
make sure that the tests can finish
+ triggerLatch.trigger();
--- End diff --
Sorry, I was just looking on the IDE and missed the lines. This line should
be before every time you call `await` on the `latch`.
---