Skip to content

Commit 8d0f8fc

Browse files
committed
test: speed up applier reconnect test
The test assumes the `<vardir>/<alias>.sock` URI for a server created by `luatest.replica_set`. It was correct before [1], but luatest changed the URI to `<vardir>/<rs>/<alias>.sock`. Commit 0e7e76e ("test: update tests according to luatest changes") was supposed to adjust the URIs, but this particular one was missed. As a result, the test waits 30 seconds for a non-existent peer, 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 8d0f8fc

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)