Skip to content

Commit

Permalink
test: restore master after switchover tests
Browse files Browse the repository at this point in the history
Part of #422
  • Loading branch information
DifferentialOrange committed Mar 20, 2024
1 parent cb9c657 commit 9c16007
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/integration/select_readview_test.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2392,6 +2392,11 @@ pgroup.test_select_switch_master = function(g)

end

pgroup.after_test('test_select_switch_master', function(g)
local replicasets = helpers.get_test_cartridge_replicasets()
set_master(g.cluster, replicasets[2].uuid, replicasets[2].servers[1].instance_uuid)
end)

-- TODO: https://github.com/tarantool/crud/issues/383
pgroup.test_select_switch_master_first = function(g)
helpers.skip_not_cartridge_backend(g.params.backend)
Expand Down Expand Up @@ -2448,6 +2453,11 @@ pgroup.test_select_switch_master_first = function(g)

end

pgroup.after_test('test_select_switch_master', function(g)
local replicasets = helpers.get_test_cartridge_replicasets()
set_master(g.cluster, replicasets[2].uuid, replicasets[2].servers[1].instance_uuid)
end)

-- TODO: https://github.com/tarantool/crud/issues/383
pgroup.test_select_closed_readview = function(g)
helpers.insert_objects(g, 'customers', {
Expand Down

0 comments on commit 9c16007

Please sign in to comment.