diff options
author | Zoe Slattery <zoe@php.net> | 2009-02-17 15:21:10 +0000 |
---|---|---|
committer | Zoe Slattery <zoe@php.net> | 2009-02-17 15:21:10 +0000 |
commit | cc96a7217089801fc2e1d26e66857fc2553cde1f (patch) | |
tree | f575a14d215eb9b22659424f8b61e544d39dd42e | |
parent | df22f1e09afce72d142553e031845847b763c7ff (diff) | |
download | php-git-cc96a7217089801fc2e1d26e66857fc2553cde1f.tar.gz |
Increased the sleep() from 1 to 5 to prevent intermittent failures
-rw-r--r-- | ext/standard/tests/mail/mail_basic2.phpt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/standard/tests/mail/mail_basic2.phpt b/ext/standard/tests/mail/mail_basic2.phpt index 3e92479deb..bb2e42eebc 100644 --- a/ext/standard/tests/mail/mail_basic2.phpt +++ b/ext/standard/tests/mail/mail_basic2.phpt @@ -30,7 +30,12 @@ $outFile = "mailBasic2.out"; echo "-- extra parameters --\n"; // Calling mail() with all possible arguments var_dump( mail($to, $subject, $message, $additional_headers, $additional_parameters) ); -sleep(1); + +//This test is just using a shell command (see the INI setting). The sleep() +//is used because that can take a while. If you see the test failing sometimes try +//increasing the length of the sleep. + +sleep(5); echo file_get_contents($outFile); //unlink($outFile); ?> |