diff --git a/tests/common/test_version.py b/tests/common/test_version.py index 5b8975069..89156f65c 100644 --- a/tests/common/test_version.py +++ b/tests/common/test_version.py @@ -145,6 +145,8 @@ def test_get_daemon_version_from_fallback_when_the_version_has_not_been_set(self self.assertEqual(FlexibleVersion("2.3.53"), get_daemon_version(), "The daemon version should be 2.3.53") self.assertEqual(1, mock_run_command.call_count, "The daemon version should be read from env value on second time") + os.environ.pop(DAEMON_VERSION_ENV_VARIABLE) + class TestCurrentAgentName(AgentTestCase): def setUp(self):