Fix flaky tests (#3724)

This commit is contained in:
Abdo 2025-01-13 05:56:52 +03:00 committed by GitHub
parent 2a1448bc45
commit e98a597b4d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -27,6 +27,7 @@ pub(crate) fn open_test_collection_with_learning_card() -> Collection {
let mut col = Collection::new();
NoteAdder::basic(&mut col).add(&mut col);
col.answer_again();
col.clear_study_queues();
col
}
@ -40,6 +41,7 @@ pub(crate) fn open_test_collection_with_relearning_card() -> Collection {
.unwrap();
col.clear_study_queues();
col.answer_again();
col.clear_study_queues();
col
}