We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent caa031c commit 5fc0368Copy full SHA for 5fc0368
tests/runtime.rs
@@ -502,7 +502,8 @@ fn test_callback_invalid_argcount() {
502
503
#[test]
504
fn memory_limit_exceeded() {
505
- let c = Context::builder().memory_limit(100_000).build().unwrap();
+ // limit should not be set too low, otherwise there's no memory to even create an exception.
506
+ let c = Context::builder().memory_limit(150_000).build().unwrap();
507
assert_eq!(
508
c.eval(" 'abc'.repeat(200_000) ", false),
509
Err(ExecutionError::OutOfMemory),
0 commit comments