Skip to content

Commit fb6c256

Browse files
raidgar98vogel76
authored andcommitted
Catch error from subprocess lib
1 parent 1249113 commit fb6c256

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/python/functional/hived/test_snapshot.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from __future__ import annotations
22

33
import os
4+
import subprocess
45
from typing import TYPE_CHECKING
56

67
import pytest
@@ -121,7 +122,7 @@ def clear_state(node: tt.InitNode):
121122
node.config.plugin.append("block_log_info")
122123
node.run(exit_before_synchronization=True, replay_from=block_log)
123124

124-
with pytest.raises(RuntimeError):
125+
with pytest.raises(subprocess.CalledProcessError):
125126
node.run(load_snapshot_from=snap_0, exit_before_synchronization=True)
126127

127128
# two files should be created which will show difference between state definitions in shm and current hived

0 commit comments

Comments
 (0)