snuyanzin commented on code in PR #21410:
URL: https://github.com/apache/flink/pull/21410#discussion_r1047221724
##########
flink-state-backends/flink-statebackend-changelog/src/test/java/org/apache/flink/state/changelog/ChangelogStateBackendLoadingTest.java:
##########
@@ -229,14 +234,14 @@ public void testLoadingRocksDBStateBackend() throws
Exception {
}
@Test
- public void testEnableChangelogStateBackendInStreamExecutionEnvironment()
throws Exception {
+ void testEnableChangelogStateBackendInStreamExecutionEnvironment() throws
Exception {
StreamExecutionEnvironment env = getEnvironment();
assertStateBackendAndChangelogInEnvironmentAndStreamGraphAndJobGraph(
env, TernaryBoolean.UNDEFINED, null);
// set back and force
env.setStateBackend(new MemoryStateBackend());
- assertTrue(env.getStateBackend() instanceof MemoryStateBackend);
+ assertThat(env.getStateBackend() instanceof
MemoryStateBackend).isTrue();
Review Comment:
```suggestion
assertThat(env.getStateBackend()).isInstanceOf(MemoryStateBackend.class);
```
could be simplified
--
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]