Skip to content

Commit

Permalink
test: refer to storage server by id
Browse files Browse the repository at this point in the history
Index alias provide stable info on instance nature, yet servers list
index doesn't.

Part of #412
Part of #415
  • Loading branch information
DifferentialOrange committed Apr 16, 2024
1 parent de11d51 commit 1e15c14
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion test/integration/borders_test.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ local pgroup = t.group('borders', helpers.backend_matrix({
pgroup.before_all(function(g)
helpers.start_default_cluster(g, 'srv_select')

g.space_format = g.cluster.servers[2].net_box.space.customers:format()
g.space_format = g.cluster:server('s1-master').net_box.space.customers:format()
end)

pgroup.after_all(function(g)
Expand Down
2 changes: 1 addition & 1 deletion test/integration/custom_bucket_id_test.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ local pgroup = t.group('custom_bucket_id', helpers.backend_matrix({
pgroup.before_all(function(g)
helpers.start_default_cluster(g, 'srv_simple_operations')

g.space_format = g.cluster.servers[2].net_box.space.customers:format()
g.space_format = g.cluster:server('s1-master').net_box.space.customers:format()
end)

pgroup.after_all(function(g)
Expand Down
2 changes: 1 addition & 1 deletion test/integration/pairs_test.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ local pgroup = t.group('pairs', helpers.backend_matrix({
pgroup.before_all(function(g)
helpers.start_default_cluster(g, 'srv_select')

g.space_format = g.cluster.servers[2].net_box.space.customers:format()
g.space_format = g.cluster:server('s1-master').net_box.space.customers:format()

g.cluster.main_server.net_box:eval([[
require('crud').cfg{ stats = true }
Expand Down
2 changes: 1 addition & 1 deletion test/integration/select_readview_test.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ local pgroup = t.group('select_readview', helpers.backend_matrix({
local function init_cluster(g)
helpers.start_default_cluster(g, 'srv_select')

g.space_format = g.cluster.servers[2].net_box.space.customers:format()
g.space_format = g.cluster:server('s1-master').net_box.space.customers:format()

g.router = helpers.get_router(g.cluster, g.params.backend)
g.router.net_box:eval([[
Expand Down
2 changes: 1 addition & 1 deletion test/integration/select_test.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ local pgroup = t.group('select', helpers.backend_matrix({
pgroup.before_all(function(g)
helpers.start_default_cluster(g, 'srv_select')

g.space_format = g.cluster.servers[2].net_box.space.customers:format()
g.space_format = g.cluster:server('s1-master').net_box.space.customers:format()

g.router = helpers.get_router(g.cluster, g.params.backend)
g.router.net_box:eval([[
Expand Down
2 changes: 1 addition & 1 deletion test/integration/truncate_test.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ local pgroup = t.group('truncate', helpers.backend_matrix({
pgroup.before_all(function(g)
helpers.start_default_cluster(g, 'srv_select')

g.space_format = g.cluster.servers[2].net_box.space.customers:format()
g.space_format = g.cluster:server('s1-master').net_box.space.customers:format()
end)

pgroup.after_all(function(g)
Expand Down

0 comments on commit 1e15c14

Please sign in to comment.