Fixes #3999 test fails to reload config file
This commit is contained in:
1 parent
f303f72055
commit
a628549ad3
1 file changed
+5
@@ -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
|
||||
|
||||
Reference in new issue
Block a user