[GitHub] [flink] FangYongs commented on a diff in pull request #23301: [FLINK-32848][tests][JUnit5 migration] Migrate flink-runtime/rpc tests to JUnit5
FangYongs commented on code in PR #23301: URL: https://github.com/apache/flink/pull/23301#discussion_r1328268676 ## flink-runtime/src/test/java/org/apache/flink/runtime/rpc/RpcSSLAuthITCase.java: ## @@ -84,9 +82,11 @@ public void testConnectFailure() throws Exception { try { // to test whether the test is still good: -// - create actorSystem2 with sslConfig1 (same as actorSystem1) and see that both can +// - create actorSystem2 with sslConfig1 (same as actorSystem1) +// and see that both can Review Comment: Why is there a new line here? -- 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: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [flink] FangYongs commented on a diff in pull request #23301: [FLINK-32848][tests][JUnit5 migration] Migrate flink-runtime/rpc tests to JUnit5
FangYongs commented on code in PR #23301: URL: https://github.com/apache/flink/pull/23301#discussion_r1328266864 ## flink-runtime/src/test/java/org/apache/flink/runtime/rpc/AsyncCallsTest.java: ## @@ -117,22 +113,22 @@ private void runScheduleWithNoDelayTest(RpcEndpointFactory factory) throws Excep Duration.ofSeconds(30L)); String str = result.get(30, TimeUnit.SECONDS); -assertEquals("test", str); +assertThat(str).isEqualTo("test"); // validate that no concurrent access happened -assertFalse("Rpc Endpoint had concurrent access", concurrentAccess.get()); +assertThat(concurrentAccess).isFalse(); Review Comment: Use `assertThat(...).withFailMessage("Rpc Endpoint had concurrent access").isFalse()` -- 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: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org