Skip to content

Commit 84e7310

Browse files
committed
tests: make sure chatmail-metadata was started
fix a flaky test: #856 (comment) since #856 chatmail-metadata is restarted every 5 second, if it didn't come up after that, the failure likely sits deeper.
1 parent dbd5cd1 commit 84e7310

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

cmdeploy/src/cmdeploy/tests/online/test_2_deltachat.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ class TestMetadataTokens:
2727

2828
def test_set_get_metadata(self, imap_mailbox):
2929
"set and get metadata token for an account"
30+
time.sleep(5) # make sure Metadata service had a chance to restart
3031
client = imap_mailbox.client
3132
client.send(b'a01 SETMETADATA INBOX (/private/devicetoken "1111" )\n')
3233
res = client.readline()

0 commit comments

Comments
 (0)