Set fetch_existing_msgs without race condition

This commit is contained in:
link2xt
2022-06-26 13:51:05 +00:00
parent a05cb61989
commit 4bc23c3fb9

View File

@@ -221,8 +221,7 @@ def test_fetch_existing(acfactory, lp, mvbox_move):
assert_folders_configured(ac1)
lp.sec("create a cloned ac1 and fetch contact history during configure")
ac1_clone = acfactory.new_online_configuring_account(cloned_from=ac1)
ac1_clone.set_config("fetch_existing_msgs", "1")
ac1_clone = acfactory.new_online_configuring_account(cloned_from=ac1, fetch_existing_msgs=True)
acfactory.wait_configured(ac1_clone)
ac1_clone.start_io()
assert_folders_configured(ac1_clone)