Skip to content

Commit 90ae20e

Browse files
committed
Fix tests
1 parent d5d8235 commit 90ae20e

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

‎tests/memory.rs‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,7 @@ fn test_memory_limit() -> Result<()> {
3737

3838
// Test memory limit during chunk loading
3939
lua.set_memory_limit(1024)?;
40-
match lua
41-
.load("local t = {}; for i = 1,10000 do t[i] = i end")
42-
.into_function()
43-
{
40+
match lua.load(format!("return '{}'", "x".repeat(4096))).into_function() {
4441
Err(Error::MemoryError(_)) => {}
4542
_ => panic!("did not trigger memory error"),
4643
};

0 commit comments

Comments
 (0)