]> git.ipfire.org Git - pbs.git/commitdiff
tests: Flush the test configuration to disk
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 12 Oct 2022 14:20:48 +0000 (14:20 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 12 Oct 2022 14:20:48 +0000 (14:20 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
tests/test.py

index 648f4578f82680462a7f12db66a3e6d06a7f1ac1..e57a8499bcf074b1a866b90c0907a88901ffaa4f 100644 (file)
@@ -71,5 +71,8 @@ class TestCase(unittest.IsolatedAsyncioTestCase):
                        # Write configuration
                        conf.write(f)
 
+                       # Flush
+                       f.flush()
+
                        # Initialize the backend
                        self.backend = Backend(f.name)