From 30c18bb3b957a6f6a12177de41f84404df44769c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@henrietta.com.pl> Date: Wed, 30 Jun 2021 18:33:01 +0200 Subject: [PATCH] tests --- tests/test_series.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/test_series.py b/tests/test_series.py index 773684a..b2ab703 100644 --- a/tests/test_series.py +++ b/tests/test_series.py @@ -88,8 +88,8 @@ class TestSeries(unittest.TestCase): self.do_verify_series(series, 0, 1800) series.close() - def test_disable_enable_mmap(self): - from tempsdb.series import create_series + def test_disable_enable_mmap_sync(self): + from tempsdb.series import create_series, TimeSeries series = create_series('test-mmap', 'test-mmap', 1, 10) start, ts = 127, 100 @@ -98,6 +98,9 @@ class TestSeries(unittest.TestCase): start -= 1 ts += 100 + series.sync() + series.close() + series = TimeSeries('test-mmap', 'test-mmap') series.disable_mmap() self.do_verify_series(series, 0, 2000) self.do_verify_series(series, 500, 2000) -- GitLab