summaryrefslogtreecommitdiff
path: root/ext/standard/tests/mail
diff options
context:
space:
mode:
authorZoe Slattery <zoe@php.net>2009-02-17 15:16:45 +0000
committerZoe Slattery <zoe@php.net>2009-02-17 15:16:45 +0000
commit1f4f3e269a3ef753205dd47036a2af5ceccb5fe0 (patch)
tree7a3dc6e2ebfa18893c5be9a41793fa1d52b78945 /ext/standard/tests/mail
parent645e15c2eae2c63f964e00e7b218f78c1c02d6ff (diff)
downloadphp-git-1f4f3e269a3ef753205dd47036a2af5ceccb5fe0.tar.gz
Increased the sleep() from 1 to 5 to prevent intermittent failures
Diffstat (limited to 'ext/standard/tests/mail')
-rw-r--r--ext/standard/tests/mail/mail_basic2.phpt7
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);
?>