Fix the flakey preview tests. (#4329)

* Try fix the flakey preview tests with a low priority task…

* Try RunLoop.current.perform

* Revert #4321: Use a dispatch queue again. Also fixes the concurrency warning with a Mutex.

The Mutex package is only required for iOS 17, we can remove it when we set the minimum deployment target to iOS 18.
This commit is contained in:
Doug
2025-07-17 12:45:33 +01:00
committed by GitHub
parent ca9d84d1d2
commit 247c7a4617
7 changed files with 100 additions and 25 deletions
@@ -1,5 +1,5 @@
{
"originHash" : "f573b0754209479f46b77206f67033b0073bb2df38ede53b3289703615c5a48f",
"originHash" : "b1dbf848264dfb6f21dc8e3a0f5382d87f4903321fb629ced1aab8a5ecb9d7c0",
"pins" : [
{
"identity" : "compound-design-tokens",
@@ -243,6 +243,15 @@
"version" : "1.3.3"
}
},
{
"identity" : "swift-mutex",
"kind" : "remoteSourceControl",
"location" : "https://github.com/swhitty/swift-mutex",
"state" : {
"revision" : "1770152df756b54c28ef1787df1e957d93cc62d5",
"version" : "0.0.6"
}
},
{
"identity" : "swift-numerics",
"kind" : "remoteSourceControl",