Skip to content

Commit eb2c247

Browse files
authored
Fix test_list_with_sort_dir (#703)
Splunk orders these case insensitively, thus we have to lower these before doing a compare.
1 parent f4b451e commit eb2c247

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/integration/test_collection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,11 @@ def test(coll_name):
158158
expected_kwargs["sort_key"] = "sid"
159159
found_kwargs["sort_key"] = "sid"
160160
expected = list(
161-
reversed([ent.name for ent in coll.list(**expected_kwargs)])
161+
reversed([ent.name.lower() for ent in coll.list(**expected_kwargs)])
162162
)
163163
if len(expected) == 0:
164164
logging.debug(f"No entities in collection {coll_name}; skipping test.")
165-
found = [ent.name for ent in coll.list(**found_kwargs)]
165+
found = [ent.name.lower() for ent in coll.list(**found_kwargs)]
166166

167167
if expected != found:
168168
logging.warning(

0 commit comments

Comments
 (0)