tests: fix Distributed with bad cluster name for v1.1.54370

This commit is contained in:
Ivan Ladelshchikov 2018-04-06 13:09:48 +04:00 committed by Itai Shirav
parent 6673841bf9
commit d0aba55b0c

View File

@ -166,8 +166,8 @@ class DistributedTestCase(_EnginesHelperTestCase):
return TestDistributedModel return TestDistributedModel
def test_bad_cluster_name(self): def test_bad_cluster_name(self):
d_model = self._create_distributed('cluster_name')
with self.assertRaises(ServerError) as cm: with self.assertRaises(ServerError) as cm:
d_model = self._create_distributed('cluster_name')
self.database.count(d_model) self.database.count(d_model)
exc = cm.exception exc = cm.exception