We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1f8abb commit 28e8f56Copy full SHA for 28e8f56
tests/memory.rs
@@ -57,8 +57,8 @@ fn test_memory_limit_thread() -> Result<()> {
57
return Ok(());
58
}
59
60
- lua.set_memory_limit(lua.used_memory() + 10000)?;
61
let thread = lua.create_thread(f)?;
+ lua.set_memory_limit(lua.used_memory() + 10000)?;
62
match thread.resume::<()>(()) {
63
Err(Error::MemoryError(_)) => {}
64
something_else => panic!("did not trigger memory error: {:?}", something_else),
0 commit comments