snuyanzin commented on code in PR #22632:
URL: https://github.com/apache/flink/pull/22632#discussion_r1204280139


##########
flink-runtime/src/test/java/org/apache/flink/runtime/state/TaskExecutorLocalStateStoresManagerTest.java:
##########
@@ -173,15 +180,16 @@ public void 
testLocalStateNoCreateDirWhenDisabledLocalRecovery() throws Exceptio
                         new Configuration(),
                         new Configuration());
 
-        
Assert.assertFalse(taskLocalStateStore.getLocalRecoveryConfig().isLocalRecoveryEnabled());
-        Assert.assertNull(
-                taskLocalStateStore
-                        .getLocalRecoveryConfig()
-                        .getLocalStateDirectoryProvider()
-                        .orElse(null));
+        
assertThat(taskLocalStateStore.getLocalRecoveryConfig().isLocalRecoveryEnabled()).isFalse();
+        assertThat(
+                        taskLocalStateStore
+                                .getLocalRecoveryConfig()
+                                .getLocalStateDirectoryProvider()
+                                .orElse(null))
+                .isNull();

Review Comment:
   ```suggestion
                   assertThat(
                   taskLocalStateStore
                           .getLocalRecoveryConfig()
                           .getLocalStateDirectoryProvider()).isNotPresent();
   ```



-- 
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]

Reply via email to