summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-02-17 21:22:37 +0100
committerChristian Poessinger <christian@poessinger.com>2020-02-17 21:22:37 +0100
commit963825a3a32e3bff4f298b2accf2b7e3ed13b91b (patch)
tree4f93091401451527fd71ae540ea9acb80ea71fa7 /scripts
parente38c7397d4a7f427bef1dfebf3e7d329d895ec1e (diff)
downloadvyos-1x-963825a3a32e3bff4f298b2accf2b7e3ed13b91b.tar.gz
vyos-1x-963825a3a32e3bff4f298b2accf2b7e3ed13b91b.zip
snmp: clean out current configuration in setUp()
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/cli/test_service_snmp.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/cli/test_service_snmp.py b/scripts/cli/test_service_snmp.py
index e46b4b588..d2e5fff27 100755
--- a/scripts/cli/test_service_snmp.py
+++ b/scripts/cli/test_service_snmp.py
@@ -39,11 +39,11 @@ class TestSNMPService(unittest.TestCase):
env = self.session.get_session_env()
self.config = Config(session_env=env)
- def tearDown(self):
- # Delete SNNP configuration
+ # ensure we can also run this test on a live system - so lets clean
+ # out the current configuration :)
self.session.delete(base_path)
- self.session.commit()
+ def tearDown(self):
del self.session
def test_snmp(self):