Skip to content

Commit

Permalink
Fix http test: test-http-same-map.js (#273)
Browse files Browse the repository at this point in the history
test-http-same-map needs to force GC which requires calling the V8
native function %CollectGarbage. This change adds the flag to expose
this function.
  • Loading branch information
matthewloring authored Jul 6, 2016
1 parent 98f5ebb commit c699820
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/non-interference/http-e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ glob(test_glob, function(err, files) {
' >' + files[testCount] + '.instru.js' + '&& mv ' + files[testCount] +
'.instru.js' + ' ' + files[testCount]);
}
var results = cp.spawnSync('node', [files[testCount]]);
// Use natives flag to allow http tests to force GC.
var results = cp.spawnSync('node', ['--allow_natives_syntax', files[testCount]]);
if (results.status) {
console.log('Failed: ' + files[testCount]);
errors ++;
Expand Down

0 comments on commit c699820

Please sign in to comment.