我試圖創建測試與codeception,將檢查的頁面正常工作在高負載的情況下。如何更改codeception phpbrowser /水貂超時
不幸的是,如果該頁面是非常非常高負荷測試開始我得到了這樣的錯誤:
[..]
[Codeception\Exception\ModuleConfig]
Codeception\Util\Mink module is not configured!
Provided URL can't be accessed by this driver.[curl] 28: Operation timed out after 30031
milliseconds with 0 out of -1 bytes received [url] http://xxxx.xxx/app_db2.php
[..]
是否有可能設置水貂超時一些更高的價值?
CURLOPT_TIMEOUT單位是秒。對於MS使用CURLOPT_TIMEOUT_MS –
@EdSullivan修復,謝謝! –
我的代碼完全忽略了這個設置,並在30秒後仍然超時。 –