Skip to content

Commit e8b7e9f

Browse files
committed
test(api): adjust error in negative memory test
This is because guest memory is backed by anon private mapping in a regular case. (cherry picked from commit d6a775d) Signed-off-by: Nikita Kalyazin <[email protected]>
1 parent 5089fcc commit e8b7e9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/integration_tests/functional/test_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ def test_api_machine_config(uvm_plain):
392392
test_microvm.api.machine_config.patch(mem_size_mib=bad_size)
393393

394394
fail_msg = re.escape(
395-
"Invalid Memory Configuration: Cannot resize memfd file: Custom { kind: InvalidInput, error: TryFromIntError(()) }"
395+
"Invalid Memory Configuration: Cannot create mmap region: Out of memory (os error 12)"
396396
)
397397
with pytest.raises(RuntimeError, match=fail_msg):
398398
test_microvm.start()

0 commit comments

Comments
 (0)