Skip to content

Commit

Permalink
test(api): adjust error in negative memory test
Browse files Browse the repository at this point in the history
This is because guest memory is backed by anon
private mapping in a regular case.

Signed-off-by: Nikita Kalyazin <kalyazin@amazon.com>
  • Loading branch information
kalyazin committed Mar 15, 2024
1 parent 931207b commit d6a775d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/integration_tests/functional/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ def test_api_machine_config(uvm_plain):
test_microvm.api.machine_config.patch(mem_size_mib=bad_size)

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

0 comments on commit d6a775d

Please sign in to comment.