mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Fix flaky tests (#3724)
This commit is contained in:
parent
2a1448bc45
commit
e98a597b4d
1 changed files with 2 additions and 0 deletions
|
@ -27,6 +27,7 @@ pub(crate) fn open_test_collection_with_learning_card() -> Collection {
|
||||||
let mut col = Collection::new();
|
let mut col = Collection::new();
|
||||||
NoteAdder::basic(&mut col).add(&mut col);
|
NoteAdder::basic(&mut col).add(&mut col);
|
||||||
col.answer_again();
|
col.answer_again();
|
||||||
|
col.clear_study_queues();
|
||||||
col
|
col
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -40,6 +41,7 @@ pub(crate) fn open_test_collection_with_relearning_card() -> Collection {
|
||||||
.unwrap();
|
.unwrap();
|
||||||
col.clear_study_queues();
|
col.clear_study_queues();
|
||||||
col.answer_again();
|
col.answer_again();
|
||||||
|
col.clear_study_queues();
|
||||||
col
|
col
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue