|
@@ -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"]]
|