forked from Cutieguwu/raven
Code cleanup.
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user