mirror of
https://github.com/Infinidat/infi.clickhouse_orm.git
synced 2025-02-16 16:30: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
|
||||
from datetime import date
|
||||
|
||||
from time import sleep
|
||||
import os
|
||||
import shutil
|
||||
from infi.clickhouse_orm.database import Database
|
||||
|
@ -61,6 +61,7 @@ class SystemPartTest(unittest.TestCase):
|
|||
# There can be other backups in the folder
|
||||
prev_backups = set(self._get_backups())
|
||||
parts[0].freeze()
|
||||
sleep(1)
|
||||
backups = set(self._get_backups())
|
||||
self.assertEqual(len(backups), len(prev_backups) + 1)
|
||||
# Clean created backup
|
||||
|
|
Loading…
Reference in New Issue
Block a user