Browse Source

fix: Reverse after adding all frames (#11962)

* fix: reverse after adding all frames
Bruno Garcia 6 years ago
parent
commit
904f854953
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/sentry/lang/native/unreal.py
  2. 1 1
      tests/sentry/lang/native/test_unreal.py

+ 1 - 1
src/sentry/lang/native/unreal.py

@@ -149,7 +149,7 @@ def merge_unreal_context_event(unreal_context, event, project):
                     'instruction_addr': hex(baseaddr + offset),
                 })
 
-                frames.reverse()
+            frames.reverse()
 
             if len(frames) > 0:
                 event['stacktrace'] = {

+ 1 - 1
tests/sentry/lang/native/test_unreal.py

@@ -209,7 +209,7 @@ class UnrealIntegrationTest(TestCase):
         frames = bt.frames
         main = frames[-1]
         assert main.errors is None
-        assert main.instruction_addr == '0xfd53034'
+        assert main.instruction_addr == '0x54be3394'
 
         attachments = sorted(
             EventAttachment.objects.filter(