Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
khvzak committed Feb 9, 2025
1 parent c1f8abb commit 28e8f56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 28e8f56

Please sign in to comment.