10000 Consider case of resigned leader. (#7061) · arangodb/arangodb@0ed466c · GitHub
[go: up one dir, main page]

Skip to content

Commit 0ed466c

Browse files
authored
Consider case of resigned leader. (#7061)
1 parent d1d3b84 commit 0ed466c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

js/server/tests/resilience/shard-distribution-spec.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,9 @@ describe('Shard distribution', function () {
122122
} else {
123123
expect(info).to.have.all.keys(['leader', 'followers']);
124124
}
125-
expect(info.leader).to.match(/^DBServer/);
125+
expect(info.leader).to.match(/^DBServer|_/);
126+
// Note that it is possible that the leader is for a short time
127+
// a resigned leader starting with an "_".
126128
assert.isArray(info.followers, 'The followers need to be an array');
127129
// We have one replica for each server, except the leader
128130
expect(info.followers.length).to.equal(dbServerCount - 1);

0 commit comments

Comments
 (0)
0