From 6e66c38eb4f8e284948f55dd8a29b28d397b9b58 Mon Sep 17 00:00:00 2001 From: Georgy Moiseev Date: Mon, 18 Mar 2024 18:12:15 +0300 Subject: [PATCH] test: always restart cluster after server fail Test scenarios which imitate "server fail" leave test cluster malfunctioning even in cartridge case. Part of #422 --- test/integration/select_readview_test.lua | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/test/integration/select_readview_test.lua b/test/integration/select_readview_test.lua index 4c5283bd..cd4048a9 100644 --- a/test/integration/select_readview_test.lua +++ b/test/integration/select_readview_test.lua @@ -2335,11 +2335,9 @@ end pgroup.after_test('test_stop_select', function(g) -- It seems more easy to restart the cluster rather then restore it -- original state. - if g.params.backend == helpers.backend.VSHARD then - helpers.stop_cluster(g.cluster, g.params.backend) - g.cluster = nil - init_cluster(g) - end + helpers.stop_cluster(g.cluster, g.params.backend) + g.cluster = nil + init_cluster(g) end) pgroup.test_select_switch_master = function(g)