mirror of
https://github.com/mlua-rs/mlua
synced 2026-06-08 16:05:43 +00:00
Fix tests
This commit is contained in:
+1
-1
@@ -57,8 +57,8 @@ fn test_memory_limit_thread() -> Result<()> {
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
lua.set_memory_limit(lua.used_memory() + 10000)?;
|
||||
let thread = lua.create_thread(f)?;
|
||||
lua.set_memory_limit(lua.used_memory() + 10000)?;
|
||||
match thread.resume::<()>(()) {
|
||||
Err(Error::MemoryError(_)) => {}
|
||||
something_else => panic!("did not trigger memory error: {:?}", something_else),
|
||||
|
||||
Reference in New Issue
Block a user