Skip to content

Commit f9af9af

Browse files
committed
Extra assertion that PRC3 default replica ordering is by ascending replica number.
1 parent fcc215d commit f9af9af

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

irods/test/data_obj_test.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3017,6 +3017,13 @@ def test_modified_sorting_of_replicas__issue_746(self):
30173017
['0', '1', '1']
30183018
)
30193019

3020+
# Get a data object with the PRC3-default sort order. Ordering is expected to
3021+
# be ascending by replica number.
3022+
if irods.version.version_as_tuple() < (4,):
3023+
data = self.sess.data_objects.get(data.path)
3024+
for i, repl in enumerate(data.replicas):
3025+
self.assertEqual(repl.number, i)
3026+
30203027
options = {}
30213028
if irods.version.version_as_tuple() < (4,):
30223029
options['replica_sort_function'] = _REPLICA_FITNESS_SORT_KEY_FN

0 commit comments

Comments
 (0)