File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
tests/sentry/event_manager/grouping Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -169,11 +169,15 @@ def get_results_from_saving_event(
169
169
)
170
170
171
171
new_event = save_new_event (event_data , project )
172
- hash_search_result = return_values [find_existing_grouphash_fn ][0 ][0 ]
173
172
post_save_grouphashes = {
174
173
gh .hash : gh .group_id for gh in GroupHash .objects .filter (project_id = project .id )
175
174
}
176
175
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
+
177
181
# We should never call any of these more than once, regardless of the test
178
182
assert calculate_primary_hash_spy .call_count <= 1
179
183
assert calculate_secondary_hash_spy .call_count <= 1
You can’t perform that action at this time.
0 commit comments