Reduce default broadcast expiry time to 4 hours

We don’t think we need to broadcast longer than this to validate that
the system is working.
This commit is contained in:
Chris Hill-Scott
2021-02-12 15:49:16 +00:00
parent 32e60ab507
commit 276644f504
2 changed files with 2 additions and 2 deletions

View File

@@ -220,7 +220,7 @@ class BroadcastMessage(JSONModel):
self._update(
starts_at=datetime.utcnow().isoformat(),
finishes_at=(
datetime.utcnow() + timedelta(hours=23, minutes=59)
datetime.utcnow() + timedelta(hours=4, minutes=0)
).isoformat(),
)
self._set_status_to('broadcasting')

View File

@@ -1873,7 +1873,7 @@ def test_request_approval(
broadcast_message_id=fake_uuid,
data={
'starts_at': '2020-02-22T22:22:22',
'finishes_at': '2020-02-23T22:21:22',
'finishes_at': '2020-02-23T02:22:22',
},
)
mock_update_broadcast_message_status.assert_called_once_with(