diff --git a/build/integration_tests.rb b/build/integration_tests.rb index 3dd15bf849..fb4abe2929 100644 --- a/build/integration_tests.rb +++ b/build/integration_tests.rb @@ -59,7 +59,11 @@ require 'shellwords' command << " -e #{Shellwords.escape(grep)}" end - sh "cd test && exec #{command}" + repeat = true + while repeat + sh "cd test && exec #{command}" + repeat = boolean_option('REPEAT') + end end end diff --git a/test/stub/node/app.js b/test/stub/node/app.js index 527e8febc9..c69556c4e2 100644 --- a/test/stub/node/app.js +++ b/test/stub/node/app.js @@ -116,8 +116,9 @@ app.all('/raw_upload_to_file', function(req, res) { stream.write(data); }); req.on('end', function() { - stream.end(); - textResponse(res, "ok"); + stream.end(function() { + textResponse(res, "ok"); + }); }); });