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 <adam_ling@outlook.com>
  • Loading branch information
2 people authored and rakshith91 committed Jan 8, 2021
1 parent fe24219 commit 1824578
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 1824578

Please sign in to comment.