tiger-seo / PhpBuiltinServer

Codeception extension for starting and stopping php built-in server
38 stars 35 forks source link

Add sleep to the startServer() method #1

Closed trq closed 10 years ago

trq commented 10 years ago

Im not sure this is the best solution for this but I had some issue where codeception was trying to run test before the server had actually started. Pausing within the startServer method for a period of time (currently 1 second) fixes this.

tiger-seo commented 10 years ago

I've enhanced this with ability to define delay within codeception.yml config, so that one can adjust it according to his environment and needs. @trq thanks, I look forward seeing more PR from you ;)