mirror of
https://github.com/Infinidat/infi.clickhouse_orm.git
synced 2025-02-21 10:40:34 +03:00
test_freeze fails, possibly due to race condition
This commit is contained in:
parent
67e0442645
commit
59a4f1cecc
|
@ -1,6 +1,6 @@
|
||||||
import unittest
|
import unittest
|
||||||
from datetime import date
|
from datetime import date
|
||||||
|
from time import sleep
|
||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
from infi.clickhouse_orm.database import Database
|
from infi.clickhouse_orm.database import Database
|
||||||
|
@ -61,6 +61,7 @@ class SystemPartTest(unittest.TestCase):
|
||||||
# There can be other backups in the folder
|
# There can be other backups in the folder
|
||||||
prev_backups = set(self._get_backups())
|
prev_backups = set(self._get_backups())
|
||||||
parts[0].freeze()
|
parts[0].freeze()
|
||||||
|
sleep(1)
|
||||||
backups = set(self._get_backups())
|
backups = set(self._get_backups())
|
||||||
self.assertEqual(len(backups), len(prev_backups) + 1)
|
self.assertEqual(len(backups), len(prev_backups) + 1)
|
||||||
# Clean created backup
|
# Clean created backup
|
||||||
|
|
Loading…
Reference in New Issue
Block a user