Skip to content

Commit 48d25c1

Browse files
committed
fix(test): actually assert error msg in test_api_mmds_config
Make the test actually assert that the returned error matches the error message stored in a local variable. Signed-off-by: Patrick Roy <[email protected]>
1 parent 3fb9a2a commit 48d25c1

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
@@ -250,7 +250,7 @@ def test_api_mmds_config(uvm_plain):
250250
"The list of network interface IDs that allow "
251251
"forwarding MMDS requests is empty."
252252
)
253-
with pytest.raises(RuntimeError):
253+
with pytest.raises(RuntimeError, match=err_msg):
254254
test_microvm.api.mmds_config.put(network_interfaces=[])
255255

256256
# Setting MMDS config when no network device has been attached

0 commit comments

Comments
 (0)