Skip to content

Commit f557ecf

Browse files
committed
Fixed the evil hardcoded attempts counter
1 parent 86cf5fc commit f557ecf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Source/Utility/tests/Tags_UT.mm

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@
558558
const auto items = Tags::GatherAllItemsWithTag(label);
559559
if( std::set<std::filesystem::path>{items.begin(), items.end()} == filepaths )
560560
break; // Sucessfully found the newly created tag among all tags found via Spotlight, i.e. success
561-
if( attempt == 9 )
561+
if( attempt == 49 )
562562
FAIL(); // Failed to find the new tag after the number of attempts
563563
std::this_thread::sleep_for(std::chrono::milliseconds{100});
564564
}
@@ -601,7 +601,7 @@
601601
const auto items = Tags::GatherAllItemsWithTag(label1);
602602
if( std::set<std::filesystem::path>{items.begin(), items.end()} == std::set<std::filesystem::path>{p1, p2, p3} )
603603
break; // Sucessfully found the newly created tag among all tags found via Spotlight, i.e. success
604-
if( attempt == 9 )
604+
if( attempt == 49 )
605605
FAIL(); // Failed to find the new tag after the number of attempts
606606
std::this_thread::sleep_for(std::chrono::milliseconds{100});
607607
}
@@ -647,7 +647,7 @@
647647
const auto items = Tags::GatherAllItemsWithTag(label1);
648648
if( std::set<std::filesystem::path>{items.begin(), items.end()} == std::set<std::filesystem::path>{p1, p2, p3} )
649649
break; // Sucessfully found the newly created tag among all tags found via Spotlight, i.e. success
650-
if( attempt == 9 )
650+
if( attempt == 49 )
651651
FAIL(); // Failed to find the new tag after the number of attempts
652652
std::this_thread::sleep_for(std::chrono::milliseconds{100});
653653
}
@@ -753,7 +753,7 @@
753753
const auto items = Tags::GatherAllItemsWithTag(label1);
754754
if( std::set<std::filesystem::path>{items.begin(), items.end()} == std::set<std::filesystem::path>{p1, p2, p3} )
755755
break; // Sucessfully found the newly created tag among all tags found via Spotlight, i.e. success
756-
if( attempt == 9 )
756+
if( attempt == 49 )
757757
FAIL(); // Failed to find the new tag after the number of attempts
758758
std::this_thread::sleep_for(std::chrono::milliseconds{100});
759759
}

0 commit comments

Comments
 (0)