Browse Source

test: Fix flaky test (#14669)

This test was non deterministic since timestamps are rounded
Lyn Nagara 5 years ago
parent
commit
baa518baab
1 changed files with 2 additions and 0 deletions
  1. 2 0
      tests/symbolicator/test_payload_full.py

+ 2 - 0
tests/symbolicator/test_payload_full.py

@@ -12,6 +12,7 @@ from django.core.files.uploadedfile import SimpleUploadedFile
 from sentry.testutils import TransactionTestCase
 from sentry.models import File, ProjectDebugFile
 from sentry import eventstore
+from sentry.testutils.helpers.datetime import iso_format, before_now
 
 from tests.symbolicator import get_fixture_path, insta_snapshot_stacktrace_data
 
@@ -145,6 +146,7 @@ class ResolvingIntegrationTestBase(object):
                 "value": u"Fatal Error: EXCEPTION_ACCESS_VIOLATION_WRITE",
             },
             "platform": "native",
+            "timestamp": iso_format(before_now(seconds=1)),
         }
 
         resp = self._postWithHeader(event_data)