Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
yngvar-antonsson committed Jan 14, 2025
1 parent b7105b0 commit 27b7cb7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/integration/expel_test.lua
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,12 @@ function g.test_api()
g.A1.net_box.space._cluster:select(),
{{1, g.r1_uuid}, {3, g.r3_uuid}}
)

-- Check explicitly that expelled leader has left membership. Just in case also.
local ret = g.A1:exec(function()
local membership = require('membership')
return membership.members()
end)

t.assert_equals(ret[g.cluster:server('A-2').advertise_uri].status, 'left')
end

0 comments on commit 27b7cb7

Please sign in to comment.