From a628549ad32a8d4ce27510967e5befc1a9d73594 Mon Sep 17 00:00:00 2001 From: Levi Blaney Date: Sat, 20 Feb 2021 10:12:16 -0500 Subject: [PATCH] Fixes #3999 test fails to reload config file --- tests/settings/test_settings.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/settings/test_settings.py b/tests/settings/test_settings.py index a4815ecc1..c57521410 100644 --- a/tests/settings/test_settings.py +++ b/tests/settings/test_settings.py @@ -1,6 +1,8 @@ # -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function, unicode_literals +from time import sleep + """ Tests for OctoPrint's Settings class @@ -606,6 +608,9 @@ class TestSettings(unittest.TestCase): basedir, configfile = paths settings = octoprint.settings.Settings() + # Make sure the config files last modified time changes + sleep(0.3) + self.assertEqual("0.0.0.0", settings.get(["server", "host"])) # modify yaml file externally