Skip to content

Commit

Permalink
fix logic in test_300
Browse files Browse the repository at this point in the history
  • Loading branch information
yocalebo committed Jul 8, 2024
1 parent 7e8c05d commit a30b721
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/api2/test_300_nfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1359,15 +1359,17 @@ def test_45_check_setting_runtime_debug(request):
try:
assert call('nfs.get_debug') == disabled
assert call('nfs.set_debug', enabled)
assert call('nfs.get_debug') == enabled
debug_values = call('nfs.get_debug')
assert all((set(enabled[i]) == set(debug_values[i]) for i in debug_values)), debug_values

with pytest.raises(Exception) as ve:
# This should generate an ValueError exception on the system
call('nfs.set_debug', failure)
assert ve.value.errno == errno.EINVAL
assert ve.value.errno == errno.EINVAL, ve
finally:
assert call('nfs.set_debug', disabled)
assert call('nfs.get_debug') == disabled
debug_values = call('nfs.get_debug')
assert all((set(disabled[i]) == set(debug_values[i]) for i in debug_values)), debug_values


def test_46_set_bind_ip():
Expand Down

0 comments on commit a30b721

Please sign in to comment.