Skip to content

Commit

Permalink
test: always restart cluster after server fail
Browse files Browse the repository at this point in the history
Test scenarios which imitate "server fail" leave test cluster
malfunctioning even in cartridge case.

Part of #422
  • Loading branch information
DifferentialOrange committed Mar 18, 2024
1 parent 3fdd950 commit 6e66c38
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions test/integration/select_readview_test.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6e66c38

Please sign in to comment.