1

环境: 排毒 6.0.4 节点:8.9.4

我正在进行挂起测试,添加时--debug-synchronization 5000我一直看到这些消息:

detox info Sync App State: Waiting for network requests to finish.: ( detox info Sync "http://localhost:1234/configurations/_?examplerequset detox info Sync ) detox info Sync Dispatch Queue: com.apple.main-thread

然后我将此行添加到我的测试启动中

await device.setURLBlacklist(['.*localhost:1234.*']);

并且我可以在测试开始时看到相应的日志:

detox verb ws send: {"type":"invoke","params":{"target":{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYConfiguration"},"method":"sharedInstance","args":[]}},"method":"setValue:forConfigKey:","args":[[".*localhost:1234.*"],"GREYConfigKeyURLBlacklistRegex"]},"messageId":1} detox verb ws onMessage: {"type":"invokeResult","messageId":1,"params":{"result":"(null)"}}

但我仍然在同Waiting for network requests to finish一个 URL 上获得相同的日志。看起来它忽略了我的黑名单。

帮助将不胜感激。

4

0 回答 0