diff --git a/native/XPlatLauncher/tests/utils/mod.rs b/native/XPlatLauncher/tests/utils/mod.rs index b6edf67f283c..7da188e0b2b0 100644 --- a/native/XPlatLauncher/tests/utils/mod.rs +++ b/native/XPlatLauncher/tests/utils/mod.rs @@ -81,6 +81,11 @@ fn prepare_test_env_impl(layout_kind: &LayoutSpec) -> Result { test_root_dir: temp_dir }; + // clean environment variables + env::remove_var("IU_JDK"); + env::remove_var("JDK_HOME"); + env::remove_var("JAVA_HOME"); + Ok(result) }