Skip to content

Commit 0643a49

Browse files
committed
Fix the event creation in acceptance test
1 parent 5d6fb4d commit 0643a49

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/acceptance/test_issue_details.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,19 +36,18 @@ def create_sample_event(self, platform, default=None, sample_name=None, time=Non
3636
# Only set these properties if we were given a time.
3737
# event processing will mark old time values as processing errors.
3838
if time:
39-
event_data['timestamp'] = time.isoformat()
4039
event_data['received'] = time.isoformat()
4140

4241
# We need a fallback datetime for the event
4342
if time is None:
44-
time = datetime(2017, 9, 6, 0, 0)
43+
time = (now - timedelta(days=1))
44+
45+
event_data['timestamp'] = time.isoformat()
4546
event = self.store_event(
4647
data=event_data,
4748
project_id=self.project.id,
4849
assert_no_errors=False,
4950
)
50-
event.datetime = time
51-
event.save()
5251
event.group.update(
5352
first_seen=datetime(2015, 8, 13, 3, 8, 25, tzinfo=timezone.utc),
5453
last_seen=time

0 commit comments

Comments
 (0)