Skip to content

Commit 28e8f56

Browse files
committed
Fix tests
1 parent c1f8abb commit 28e8f56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/memory.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ fn test_memory_limit_thread() -> Result<()> {
5757
return Ok(());
5858
}
5959

60-
lua.set_memory_limit(lua.used_memory() + 10000)?;
6160
let thread = lua.create_thread(f)?;
61+
lua.set_memory_limit(lua.used_memory() + 10000)?;
6262
match thread.resume::<()>(()) {
6363
Err(Error::MemoryError(_)) => {}
6464
something_else => panic!("did not trigger memory error: {:?}", something_else),

0 commit comments

Comments
 (0)