Skip to content

Commit 8fbc267

Browse files
committed
test(test_negative_snapshot_permissions): update regexp
This is because the error type has changed. Signed-off-by: Nikita Kalyazin <[email protected]>
1 parent 3c739b7 commit 8fbc267

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/integration_tests/functional/test_snapshot_basic.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -338,9 +338,9 @@ def test_negative_snapshot_permissions(uvm_plain_rw, microvm_factory):
338338
microvm.spawn()
339339

340340
expected_err = re.escape(
341-
"Load snapshot error: Failed to restore from snapshot: Failed to load guest "
342-
"memory: Error creating guest memory from file: Failed to load guest memory: "
343-
"Permission denied (os error 13)"
341+
"Load snapshot error: Failed to restore from snapshot: Failed to build microVM "
342+
"from snapshot: Failed to load guest memory: Error creating guest memory from file: "
343+
"Failed to load guest memory: Permission denied (os error 13)"
344344
)
345345
with pytest.raises(RuntimeError, match=expected_err):
346346
microvm.restore_from_snapshot(snapshot, resume=True)

0 commit comments

Comments
 (0)