Skip to content

Commit 5575e2c

Browse files
committed
bring accounts online in wait_next_messages test
1 parent 3293bc2 commit 5575e2c

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
@@ -472,14 +472,15 @@ def track(e):
472472

473473

474474
def test_wait_next_messages(acfactory) -> None:
475-
alice = acfactory.new_configured_account()
475+
alice = acfactory.get_online_account()
476476

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

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

0 commit comments

Comments
 (0)