JavaEar 专注于收集分享传播有价值的技术资料

Codeception getting timed out after 30 seconds when using REST

I am trying to post a file via code exception but it keeps getting timed out after 30 seconds.

How to handle it?

$I -> sendPOST('submit?key=someauthKey', [
    'ae_id' => '106016',
    'be_id' => '1',
    'me_id' => '81',
], [
    'file' => codecept_data_dir('download.png')
]);

1个回答

    最佳答案
  1. You need to set execution time of PHP Script

    Use the follow code in top of you PHP file. The maximum execution time, in seconds. If set to zero, no time limit is imposed.

    set_time_limit(0);
    

    NOTE set_time_limit() function has no effect when PHP is running in safe mode.