Skip to content
Snippets Groups Projects
Commit 335a30c4 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

test for trimming multiple chunks

parent e25eaa66
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,18 @@ import unittest
class TestSeries(unittest.TestCase):
def test_trim_multiple_chunks(self):
from tempsdb.series import create_series, TimeSeries
series = create_series('test7', 'test7', 10, 4096)
for i in range(0, 16000):
series.append(i, b'\x00'*10)
series.trim(8000)
with series.iterate_range(0, 17000) as it:
for ts, v in it:
self.assertNotEqual(ts, 0)
def test_write_series_append_after_close(self):
from tempsdb.series import create_series, TimeSeries
series = create_series('test6', 'test6', 10, 4096)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment