@@ -39,7 +39,7 @@ test('transaction name', function (t) {
39
39
40
40
// NOTE: Hostname must be supplied to force IPv4 mode,
41
41
// otherwise this will use IPv6, which fails on Travis CI.
42
- server . listen ( null , '0.0.0.0' , function ( ) {
42
+ server . listen ( 0 , '0.0.0.0' , function ( ) {
43
43
const req = http . get ( `${ server . url } /hello/world` , res => {
44
44
t . equal ( res . statusCode , 200 , 'server should respond with status code 200' )
45
45
const chunks = [ ]
@@ -96,7 +96,7 @@ test('error reporting', function (t) {
96
96
97
97
// NOTE: Hostname must be supplied to force IPv4 mode,
98
98
// otherwise this will use IPv6, which fails on Travis CI.
99
- server . listen ( null , '0.0.0.0' , function ( ) {
99
+ server . listen ( 0 , '0.0.0.0' , function ( ) {
100
100
const req = http . get ( `${ server . url } /hello/world` , res => {
101
101
t . equal ( res . statusCode , 500 , 'server should respond with status code 500' )
102
102
res . resume ( )
@@ -149,7 +149,7 @@ test('error reporting from chained handler', function (t) {
149
149
150
150
// NOTE: Hostname must be supplied to force IPv4 mode,
151
151
// otherwise this will use IPv6, which fails on Travis CI.
152
- server . listen ( null , '0.0.0.0' , function ( ) {
152
+ server . listen ( 0 , '0.0.0.0' , function ( ) {
153
153
const req = http . get ( `${ server . url } /hello/world` , res => {
154
154
t . equal ( res . statusCode , 500 , 'server should respond with status code 500' )
155
155
res . resume ( )
0 commit comments