From ef44fefd30a5b070ef013c62a26f43e9b63779c0 Mon Sep 17 00:00:00 2001 From: Zoe Slattery Date: Tue, 17 Feb 2009 15:13:20 +0000 Subject: [PATCH] Increased the sleep() from 1 to 5 to prevent intermittent failures --- ext/standard/tests/mail/mail_basic2.phpt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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); ?> -- 2.40.0