Index: test/unittests/compiler-dispatcher/compiler-dispatcher-job-unittest.cc |
diff --git a/test/unittests/compiler-dispatcher/compiler-dispatcher-job-unittest.cc b/test/unittests/compiler-dispatcher/compiler-dispatcher-job-unittest.cc |
index 5a8a49cf7f4139947cce24fb6a51d8b681d15fb2..e79d7234815e81fb2dc9161e01c0f78b65bb2392 100644 |
--- a/test/unittests/compiler-dispatcher/compiler-dispatcher-job-unittest.cc |
+++ b/test/unittests/compiler-dispatcher/compiler-dispatcher-job-unittest.cc |
@@ -215,13 +215,13 @@ TEST_F(CompilerDispatcherJobTest, CompileFailureToPrepare) { |
TEST_F(CompilerDispatcherJobTest, CompileFailureToFinalize) { |
std::string raw_script("() { var a = "); |
- for (int i = 0; i < 2000; i++) { |
+ for (int i = 0; i < 1000; i++) { |
raw_script += "'x' + "; |
} |
raw_script += " 'x'; }"; |
ScriptResource script(raw_script.c_str(), strlen(raw_script.c_str())); |
std::unique_ptr<CompilerDispatcherJob> job(new CompilerDispatcherJob( |
- i_isolate(), CreateFunction(i_isolate(), &script), 100)); |
+ i_isolate(), CreateFunction(i_isolate(), &script), 50)); |
job->PrepareToParseOnMainThread(); |
job->Parse(); |