Skip to content

Commit cb289bf

Browse files
committed
test: speed up applier reconnect test
The test assumes `<vardir>/<alias>.sock` URI for a server created by `luatest.replica_set`. It was correct before [1], but luatest changes the URI schema to `<vardir>/<rs>/<alias>.sock`. Commit 0e7e76e ("test: update tests according to luatest changes") is supposed to adjust the URIs, but this particular one was missed. As result, the test waits on a non-existing URI for 30 seconds, but then succeeds. Here we eliminate this waiting, so the test passes in ~2 seconds. [1]: tarantool/luatest#300. NO_DOC=test adjustment NO_CHANGELOG=same
1 parent 5bfb0ff commit cb289bf

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎test/replication-luatest/gh_4669_applier_reconnect_test.lua‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
local t = require('luatest')
22
local cluster = require('luatest.replica_set')
3-
local server = require('luatest.server')
43

54
local g = t.group('gh-4669-applier-reconnect')
65

@@ -34,9 +33,9 @@ g.test_applier_connection_on_reconfig = function(g)
3433
replication = {
3534
box.cfg.listen,
3635
box.cfg.replication[1],
37-
"%s/replica2.sock",
36+
"%s",
3837
}
39-
}]]):format(server.vardir))
38+
}]]):format(g.replica2.net_box_uri))
4039
g.replica:eval([[
4140
box.cfg{
4241
replication = {

0 commit comments

Comments
 (0)