Skip to content

Commit b073ae6

Browse files
test: fix compatibility with Tarantool master
New Tarantool 3.0 patch introduces a breaking change [1]. This patch adds a compatibility layer to test instance. 1. tarantool/tarantool#8289 Closes #293
1 parent f0f3054 commit b073ae6

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Diff for: test/suites/crud_server.lua

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
#!/usr/bin/env tarantool
22

3+
local function replicaset_uuid()
4+
if box.info().replicaset ~= nil and box.info().replicaset.uuid ~= nil then
5+
return box.info().replicaset.uuid
6+
end
7+
8+
return box.info().cluster.uuid
9+
end
10+
311
local function configure_crud_instance(primary_listen, crud, vshard)
412
box.schema.create_space(
513
'tester', {
@@ -30,7 +38,7 @@ local function configure_crud_instance(primary_listen, crud, vshard)
3038
local cfg = {
3139
bucket_count = 300,
3240
sharding = {
33-
[box.info().cluster.uuid] = {
41+
[replicaset_uuid()] = {
3442
replicas = {
3543
[box.info().uuid] = {
3644
uri = uri,

0 commit comments

Comments
 (0)