Fix statuses for sendBroadcast

This commit is contained in:
Dmitri Bogomolov 2020-10-26 12:52:14 +02:00
parent c18b544732
commit b650e97edc
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13

View File

@ -279,8 +279,8 @@ class TestAPI(TestAPIProto):
status = self.api.getStatus(ackdata)
if status == 'notfound':
raise KeyError
self.assertIn(
status, ('broadcastqueued', 'broadcastsent', 'doingmsgpow'))
self.assertIn(status, (
'doingbroadcastpow', 'broadcastqueued', 'broadcastsent'))
# Find the message and its ID in sent
for m in json.loads(self.api.getAllSentMessages())['sentMessages']:
if m['ackData'] == ackdata: