Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EventHubs] Add unit test for 32 partition greedy ownership to attempt and validate issue #13546 having been fixed #15786

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add unit test for 32 partition greedy ownership to attempt and valida…
…te issue #13546 having been fixed. (it seems to have been.)
KieranBrantnerMagee committed Dec 14, 2020
commit 5f3eb90ee32c76ed38985f00199f617aefb4a5c4
Original file line number Diff line number Diff line change
@@ -522,6 +522,8 @@ def claim_ownership(self, ownsership):
(['ownership_expired', 'ownership_released'], ["0", "1", "2", "3"], 4),
(['ownership_active0', 'ownership_active1'], ["0", "1"], 0),
(['ownership_active0', 'ownership_self_owned'], ["0", "1"], 1),
(['ownership_active0', 'ownership_active1'], [str(i) for i in range(32)], 11),
yunhaoling marked this conversation as resolved.
Show resolved Hide resolved
(['ownership_active0'], [str(i) for i in range(32)], 16),
]
)
def test_balance_ownership_greedy(ownerships, partitions, expected_result):