Add a "retries" option to gpui::test macro and use it in flaky tests

This commit is contained in:
Nathan Sobo
2021-06-24 17:51:16 -06:00
parent 38891070e7
commit 3d67266d0b
3 changed files with 95 additions and 17 deletions
+1 -1
View File
@@ -651,7 +651,7 @@ mod tests {
finder.read_with(&cx, |f, _| assert_eq!(f.matches.len(), 0));
}
#[gpui::test]
#[gpui::test(retries = 5)]
async fn test_multiple_matches_with_same_relative_path(mut cx: gpui::TestAppContext) {
let tmp_dir = temp_tree(json!({
"dir1": { "a.txt": "" },