Code cleanup.

This commit is contained in:
Olivia Brooks
2026-01-27 22:01:41 -05:00
parent f3f79a12df
commit 54e6350d42
2 changed files with 20 additions and 19 deletions

View File

@@ -240,7 +240,7 @@ fn run<P: AsRef<Path>>(
// JRE pathing will be messed up without this.
crate::env::set_cwd(DIR_TARGET.as_path())?;
java::JVMBuilder::new()
java::JVMBuilder::new(DIR_TARGET.as_path())
.assertions(assertions)
.monitor(true)
.build()
@@ -257,7 +257,7 @@ fn test(assertions: bool) -> anyhow::Result<(Option<String>, Option<String>)> {
// Change cwd to avoid Java pathing issues.
crate::env::set_cwd(DIR_TARGET.as_path())?;
java::JVMBuilder::new()
java::JVMBuilder::new(DIR_TARGET.as_path())
.assertions(assertions)
.ram_min(ByteSize::mib(128))
.ram_max(ByteSize::mib(512))