]> granicus.if.org Git - php/commitdiff
Increased the sleep() from 1 to 5 to prevent intermittent failures
authorZoe Slattery <zoe@php.net>
Tue, 17 Feb 2009 15:21:10 +0000 (15:21 +0000)
committerZoe Slattery <zoe@php.net>
Tue, 17 Feb 2009 15:21:10 +0000 (15:21 +0000)
ext/standard/tests/mail/mail_basic2.phpt

index 3e92479deb0bf7b4f1f00d218c9d345838229f43..bb2e42eebcc5a6933d43978b0c28fd9bbffb1eba 100644 (file)
@@ -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);
 ?>