zhangyy91 commented on code in PR #23265:
URL: https://github.com/apache/flink/pull/23265#discussion_r1314270371
##########
flink-runtime/src/test/java/org/apache/flink/runtime/taskmanager/TaskTest.java:
##########
@@ -540,9 +527,9 @@ public void testFailExternallyDuringInvoke() throws
Exception {
task.getExecutingThread().join();
- assertEquals(ExecutionState.FAILED, task.getExecutionState());
- assertTrue(task.isCanceledOrFailed());
- assertTrue(task.getFailureCause().getMessage().contains("test"));
+ assertThat(task.getExecutionState()).isEqualTo(ExecutionState.FAILED);
+ assertThat(task.isCanceledOrFailed()).isTrue();
+
assertThat(task.getFailureCause().getMessage().contains("test")).isTrue();
Review Comment:
fixed
##########
flink-runtime/src/test/java/org/apache/flink/runtime/taskmanager/TaskTest.java:
##########
@@ -854,9 +841,9 @@ public void testTriggerPartitionStateUpdate() throws
Exception {
promise.completeExceptionally(new TimeoutException());
- assertEquals(ExecutionState.RUNNING, task.getExecutionState());
+
assertThat(task.getExecutionState()).isEqualTo(ExecutionState.RUNNING);
- assertEquals(1, callCount.get());
+ assertThat(callCount.get()).isEqualTo(1);
Review Comment:
fixed
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]