Browse Source

test: retry fixing flaky csp-related test by sleeping more (#15020)

josh 5 years ago
parent
commit
dac9d33065
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tests/integration/tests.py

+ 2 - 2
tests/integration/tests.py

@@ -603,10 +603,10 @@ class CspReportTest(TestCase, SnubaTestCase):
         resp = self._postCspWithHeader(input)
         assert resp.status_code == 201, resp.content
         # XXX: there appears to be a race condition between the 201 return and get_events,
-        # leading this test to sometimes fail. .1s seems to be sufficient.
+        # leading this test to sometimes fail. .5s seems to be sufficient.
         # Modifying the timestamp of store_event, like how it's done in other snuba tests,
         # doesn't work here because the event isn't created directly by this test.
-        sleep(0.1)
+        sleep(0.5)
         events = eventstore.get_events(
             filter=eventstore.Filter(
                 project_ids=[self.project.id], conditions=[["type", "=", "csp"]]