|
558 | 558 | const auto items = Tags::GatherAllItemsWithTag(label);
|
559 | 559 | if( std::set<std::filesystem::path>{items.begin(), items.end()} == filepaths )
|
560 | 560 | break; // Sucessfully found the newly created tag among all tags found via Spotlight, i.e. success
|
561 |
| - if( attempt == 9 ) |
| 561 | + if( attempt == 49 ) |
562 | 562 | FAIL(); // Failed to find the new tag after the number of attempts
|
563 | 563 | std::this_thread::sleep_for(std::chrono::milliseconds{100});
|
564 | 564 | }
|
|
601 | 601 | const auto items = Tags::GatherAllItemsWithTag(label1);
|
602 | 602 | if( std::set<std::filesystem::path>{items.begin(), items.end()} == std::set<std::filesystem::path>{p1, p2, p3} )
|
603 | 603 | break; // Sucessfully found the newly created tag among all tags found via Spotlight, i.e. success
|
604 |
| - if( attempt == 9 ) |
| 604 | + if( attempt == 49 ) |
605 | 605 | FAIL(); // Failed to find the new tag after the number of attempts
|
606 | 606 | std::this_thread::sleep_for(std::chrono::milliseconds{100});
|
607 | 607 | }
|
|
647 | 647 | const auto items = Tags::GatherAllItemsWithTag(label1);
|
648 | 648 | if( std::set<std::filesystem::path>{items.begin(), items.end()} == std::set<std::filesystem::path>{p1, p2, p3} )
|
649 | 649 | break; // Sucessfully found the newly created tag among all tags found via Spotlight, i.e. success
|
650 |
| - if( attempt == 9 ) |
| 650 | + if( attempt == 49 ) |
651 | 651 | FAIL(); // Failed to find the new tag after the number of attempts
|
652 | 652 | std::this_thread::sleep_for(std::chrono::milliseconds{100});
|
653 | 653 | }
|
|
753 | 753 | const auto items = Tags::GatherAllItemsWithTag(label1);
|
754 | 754 | if( std::set<std::filesystem::path>{items.begin(), items.end()} == std::set<std::filesystem::path>{p1, p2, p3} )
|
755 | 755 | break; // Sucessfully found the newly created tag among all tags found via Spotlight, i.e. success
|
756 |
| - if( attempt == 9 ) |
| 756 | + if( attempt == 49 ) |
757 | 757 | FAIL(); // Failed to find the new tag after the number of attempts
|
758 | 758 | std::this_thread::sleep_for(std::chrono::milliseconds{100});
|
759 | 759 | }
|
|
0 commit comments