Skip to content

Commit c9c90ec

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 2c74c65 commit c9c90ec

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

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

0 commit comments

Comments
 (0)