Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
better0fdead committed Sep 26, 2023
1 parent 1b84579 commit 86f4560
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/integration/select_readview_test.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
local fio = require('fio')

local fiber = require('fiber')
local t = require('luatest')

local crud = require('crud')
Expand Down Expand Up @@ -94,6 +95,7 @@ pgroup.test_select_switch_master = function(g)
t.assert_equals(err, nil)
local replicasets = helpers.get_test_replicasets()
set_master(g.cluster, replicasets[2].uuid, replicasets[2].servers[2].instance_uuid)
fiber.sleep(3)
local obj, err = g.cluster.main_server.net_box:eval([[
local crud = require('crud')
local foo = rawget(_G, 'foo')
Expand All @@ -103,6 +105,7 @@ pgroup.test_select_switch_master = function(g)
return result, err
]])
set_master(g.cluster, replicasets[2].uuid, replicasets[2].servers[1].instance_uuid)
fiber.sleep(3)
t.assert_equals(err, nil)
t.assert_equals(obj.rows, {
{1, 477, "Elizabeth", "Jackson", 12, "New York"},
Expand Down

0 comments on commit 86f4560

Please sign in to comment.