mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
fix intermittent sync test fails
This commit is contained in:
parent
54bcdf6f21
commit
cdfaa664ed
1 changed files with 2 additions and 0 deletions
|
@ -47,6 +47,7 @@ def setup_basic():
|
||||||
def setup_modified():
|
def setup_modified():
|
||||||
setup_basic()
|
setup_basic()
|
||||||
# mark deck1 as changed
|
# mark deck1 as changed
|
||||||
|
time.sleep(0.1)
|
||||||
deck1.setMod()
|
deck1.setMod()
|
||||||
deck1.save()
|
deck1.save()
|
||||||
|
|
||||||
|
@ -203,6 +204,7 @@ def test_conf():
|
||||||
test_sync()
|
test_sync()
|
||||||
assert deck2.conf['curDeck'] == 1
|
assert deck2.conf['curDeck'] == 1
|
||||||
deck1.conf['curDeck'] = 2
|
deck1.conf['curDeck'] = 2
|
||||||
|
time.sleep(0.1)
|
||||||
deck1.setMod()
|
deck1.setMod()
|
||||||
deck1.save()
|
deck1.save()
|
||||||
assert client.sync() == "success"
|
assert client.sync() == "success"
|
||||||
|
|
Loading…
Reference in a new issue