Skip to content

Commit aabb399

Browse files
committed
fix tests
1 parent 24be5b5 commit aabb399

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/sentry/event_manager/grouping/test_assign_to_group.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,11 +169,15 @@ def get_results_from_saving_event(
169169
)
170170

171171
new_event = save_new_event(event_data, project)
172-
hash_search_result = return_values[find_existing_grouphash_fn][0][0]
173172
post_save_grouphashes = {
174173
gh.hash: gh.group_id for gh in GroupHash.objects.filter(project_id=project.id)
175174
}
176175

176+
hash_search_result = return_values[find_existing_grouphash_fn][0]
177+
# The current logic wraps the search result in an extra layer which we need to unwrap
178+
if not new_logic_enabled:
179+
hash_search_result = hash_search_result[0]
180+
177181
# We should never call any of these more than once, regardless of the test
178182
assert calculate_primary_hash_spy.call_count <= 1
179183
assert calculate_secondary_hash_spy.call_count <= 1

0 commit comments

Comments
 (0)