This is an automated email from the ASF dual-hosted git repository.

hxb pushed a commit to branch release-1.15
in repository https://gitbox.apache.org/repos/asf/flink.git


The following commit(s) were added to refs/heads/release-1.15 by this push:
     new 2fa7114b2f3 [hotfix][python] Fix the compile error in PythonOptionsTest
2fa7114b2f3 is described below

commit 2fa7114b2f3392fb90f6221f0d1a440d97084ccf
Author: huangxingbo <[email protected]>
AuthorDate: Wed Oct 26 10:15:49 2022 +0800

    [hotfix][python] Fix the compile error in PythonOptionsTest
---
 .../src/test/java/org/apache/flink/python/PythonOptionsTest.java   | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git 
a/flink-python/src/test/java/org/apache/flink/python/PythonOptionsTest.java 
b/flink-python/src/test/java/org/apache/flink/python/PythonOptionsTest.java
index 2b4bb881202..915d948d0a3 100644
--- a/flink-python/src/test/java/org/apache/flink/python/PythonOptionsTest.java
+++ b/flink-python/src/test/java/org/apache/flink/python/PythonOptionsTest.java
@@ -184,14 +184,15 @@ public class PythonOptionsTest {
         final Configuration configuration = new Configuration();
         final boolean isSystemEnvEnabled =
                 
configuration.getBoolean(PythonOptions.PYTHON_SYSTEMENV_ENABLED);
-        assertThat(isSystemEnvEnabled)
-                
.isEqualTo(PythonOptions.PYTHON_SYSTEMENV_ENABLED.defaultValue());
+        assertThat(
+                isSystemEnvEnabled,
+                
is(equalTo(PythonOptions.PYTHON_SYSTEMENV_ENABLED.defaultValue())));
 
         final boolean expectedIsSystemEnvEnabled = false;
         configuration.setBoolean(PythonOptions.PYTHON_SYSTEMENV_ENABLED, 
false);
 
         final boolean actualIsSystemEnvEnabled =
                 
configuration.getBoolean(PythonOptions.PYTHON_SYSTEMENV_ENABLED);
-        
assertThat(actualIsSystemEnvEnabled).isEqualTo(expectedIsSystemEnvEnabled);
+        assertThat(actualIsSystemEnvEnabled, 
is(equalTo((expectedIsSystemEnvEnabled))));
     }
 }

Reply via email to