From 8b89a7b69110a28358bdccb4f8fe1f8543ae832c Mon Sep 17 00:00:00 2001 From: Stefan Siegl Date: Wed, 10 Dec 2014 19:27:04 +0100 Subject: [PATCH] increase time limit to start engine --- tests/set_time_limit_002.phpt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/set_time_limit_002.phpt b/tests/set_time_limit_002.phpt index 00b4c8e..76abf7a 100644 --- a/tests/set_time_limit_002.phpt +++ b/tests/set_time_limit_002.phpt @@ -11,8 +11,8 @@ var jsfunc = function() { var start = (new Date()).getTime(); var text = "abcdefghijklmnopqrstuvwyxz0123456789"; - while ((new Date()).getTime() - start < 150) { - /* pass at least 150ms in the loop so the timer loop has plenty of + while ((new Date()).getTime() - start < 500) { + /* pass at least 500ms in the loop so the timer loop has plenty of * time to trigger. */ var encoded = encodeURI(text); } @@ -22,10 +22,10 @@ EOT; $v8 = new V8Js(); /* Set very short time limit, but enough so v8 can start up safely. */ -$v8->setTimeLimit(20); +$v8->setTimeLimit(100); $v8->incrTimeLimit = function() use ($v8) { - $v8->setTimeLimit(100); + $v8->setTimeLimit(300); }; $func = $v8->executeString($JS); @@ -43,5 +43,5 @@ try { object(V8Function)#%d (0) { } V8JsTimeLimitException -Script time limit of 100 milliseconds exceeded +Script time limit of 300 milliseconds exceeded ===EOF===