Commit 7853b16 1 parent dccccbb commit 7853b16 Copy full SHA for 7853b16
File tree 2 files changed +5
-7
lines changed
2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ prefix sequential
10
10
11
11
[$system==linux]
12
12
test-vm-syntax-error-stderr : PASS,FLAKY
13
- test-http-regr-gh-2928 : PASS,FLAKY
14
13
15
14
[$system==macos]
16
15
Original file line number Diff line number Diff line change
1
+ // This test is designed to fail with a segmentation fault in Node.js 4.1.0 and
2
+ // execute without issues in Node.js 4.1.1 and up.
3
+
1
4
'use strict' ;
2
5
const common = require ( '../common' ) ;
3
6
const assert = require ( 'assert' ) ;
4
7
const httpCommon = require ( '_http_common' ) ;
5
8
const HTTPParser = process . binding ( 'http_parser' ) . HTTPParser ;
6
9
const net = require ( 'net' ) ;
7
10
8
- const PARALLEL = 30 ;
9
- const COUNT = httpCommon . parsers . max + 100 ;
11
+ const COUNT = httpCommon . parsers . max + 1 ;
10
12
11
13
const parsers = new Array ( COUNT ) ;
12
14
for ( var i = 0 ; i < parsers . length ; i ++ )
@@ -41,10 +43,7 @@ var server = net.createServer(function(c) {
41
43
c . end ( 'HTTP/1.1 200 OK\r\n\r\n' , function ( ) {
42
44
c . destroySoon ( ) ;
43
45
} ) ;
44
- } ) . listen ( common . PORT , function ( ) {
45
- for ( var i = 0 ; i < PARALLEL ; i ++ )
46
- execAndClose ( ) ;
47
- } ) ;
46
+ } ) . listen ( common . PORT , execAndClose ) ;
48
47
49
48
process . on ( 'exit' , function ( ) {
50
49
assert . equal ( gotResponses , COUNT ) ;
You can’t perform that action at this time.
0 commit comments