Skip to content

Commit 972428d

Browse files
committed
Fix test_api_machine_config
A change in error types in Rust caused an assertion to fail. Error changed from `Other` to `OutOfMemory`. Signed-off-by: Babis Chalios <[email protected]>
1 parent 35dfb24 commit 972428d

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
@@ -464,7 +464,7 @@ def test_api_machine_config(test_microvm_with_api):
464464
response = test_microvm.actions.put(action_type="InstanceStart")
465465
fail_msg = (
466466
"Invalid Memory Configuration: MmapRegion(Mmap(Os { code: "
467-
"12, kind: Other, message: Out of memory }))"
467+
"12, kind: OutOfMemory, message: Out of memory }))"
468468
)
469469
assert test_microvm.api_session.is_status_bad_request(response.status_code)
470470
assert fail_msg in response.text

0 commit comments

Comments
 (0)