Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
尝试编写测试时看到此错误。如何将earlgrey 配置为根本不跟踪网络呼叫?
异常详细信息:错误跟踪:[{“Description”:“无法执行块,因为下面的空闲资源很忙。”,“Description Glossary”:{“GREYAppStateTracker”:“等待网络请求完成。默认情况下,EarlGrey 跟踪所有网络请求。要更改此行为,请参阅 GREYConfiguration。
如果您知道不想被跟踪的链接,那么您可以使用黑名单正则表达式配置。
https://github.com/google/EarlGrey/blob/91c27bb8a15e723df974f620f7f576a30a6a7484/Tests/UnitTests/Sources/NSURL%2BGREYAdditionsTest.m#L43