Skip to content

Commit

Permalink
Add unit test for 32 partition greedy ownership to attempt and valida…
Browse files Browse the repository at this point in the history
…te issue Azure#13546 having been fixed. (it seems to have been.) (Azure#15786)

Co-authored-by: Yunhao Ling <[email protected]>
  • Loading branch information
KieranBrantnerMagee and yunhaoling authored Dec 21, 2020
1 parent c9240aa commit 5b1777e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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),
(['ownership_active0'], [str(i) for i in range(32)], 16),
]
)
def test_balance_ownership_greedy(ownerships, partitions, expected_result):
Expand Down

0 comments on commit 5b1777e

Please sign in to comment.