Skip to content

Commit 1b122d3

Browse files
committed
fix(test/virtio-mem): ensure RuntimeError is raised with matching reason
We should match the exact reason for the RuntimeError to ensure we're failing for what we're expecting. Signed-off-by: Riccardo Mancini <[email protected]>
1 parent 3abc16d commit 1b122d3

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
@@ -1006,7 +1006,7 @@ def test_api_memory_hotplug(uvm_plain):
10061006
test_microvm.start()
10071007

10081008
# Put API should be rejected after boot
1009-
with pytest.raises(RuntimeError):
1009+
with pytest.raises(RuntimeError, match=NOT_SUPPORTED_AFTER_START):
10101010
test_microvm.api.memory_hotplug.put(total_size_mib=1024)
10111011

10121012
# Get API should work after boot

0 commit comments

Comments
 (0)