Skip to content

Commit a290344

Browse files
committed
bring accounts online in wait_next_messages test
1 parent 15b117d commit a290344

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

deltachat-rpc-client/tests/test_something.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,14 +473,15 @@ def track(e):
473473

474474

475475
def test_wait_next_messages(acfactory) -> None:
476-
alice = acfactory.new_configured_account()
476+
alice = acfactory.get_online_account()
477477

478478
# Create a bot account so it does not receive device messages in the beginning.
479479
addr, password = acfactory.get_credentials()
480480
bot = acfactory.get_unconfigured_account()
481481
bot.set_config("bot", "1")
482482
bot.add_or_update_transport({"addr": addr, "password": password})
483483
assert bot.is_configured()
484+
bot.bring_online()
484485

485486
# There are no old messages and the call returns immediately.
486487
assert not bot.wait_next_messages()

0 commit comments

Comments
 (0)