Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Commit ffa5147

Browse files
committed
Try to get test/shard_* semi-working on shard-2.1
1 parent 2bfd8fe commit ffa5147

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/shard_servers/master.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@ function instance_uri(instance_id)
1212
end
1313

1414
function init_shard(servers, config, suite)
15+
if shard_initialized then return end
16+
1517
local shard = require('shard')
1618
local env = require('test_run')
1719
local test_run = env.new()
1820

1921
test_run:create_cluster(servers, suite)
20-
if not shard_initialized then
21-
shard.init(config)
22-
shard_initialized = true
23-
end
22+
shard.init(config)
2423
shard.wait_connection()
24+
shard_initialized = true
2525
end
2626

2727
require('console').listen(os.getenv('ADMIN'))

0 commit comments

Comments
 (0)