Skip to content

Commit

Permalink
Use unset_config for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
Deezzir committed Sep 20, 2024
1 parent d56b699 commit 326d2ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/functional/test_snap_dcgm.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def bind_config(self, service, config, new_value):
yield
finally:
# Revert back
self.set_config(service, config, old_value)
self.unset_config(service, config)
self.check_bind_config(service, old_value)

@pytest.mark.parametrize(
Expand Down Expand Up @@ -250,7 +250,7 @@ def dependency_setup(cls):
yield

# Revert back
cls.set_config(cls.nv_hostengine_service, cls.nv_hostengine_port_config, old_value)
cls.unset_config(cls.nv_hostengine_service, cls.nv_hostengine_port_config)
cls.check_bind_config(cls.nv_hostengine_service, old_value)
subprocess.check_call(f"sudo snap start {cls.dcgm_exporter_service}".split())

Expand Down

0 comments on commit 326d2ae

Please sign in to comment.