@@ -39,7 +39,7 @@ test('transaction name', function (t) {
3939
4040 // NOTE: Hostname must be supplied to force IPv4 mode,
4141 // 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 ( ) {
4343 const req = http . get ( `${ server . url } /hello/world` , res => {
4444 t . equal ( res . statusCode , 200 , 'server should respond with status code 200' )
4545 const chunks = [ ]
@@ -96,7 +96,7 @@ test('error reporting', function (t) {
9696
9797 // NOTE: Hostname must be supplied to force IPv4 mode,
9898 // 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 ( ) {
100100 const req = http . get ( `${ server . url } /hello/world` , res => {
101101 t . equal ( res . statusCode , 500 , 'server should respond with status code 500' )
102102 res . resume ( )
@@ -149,7 +149,7 @@ test('error reporting from chained handler', function (t) {
149149
150150 // NOTE: Hostname must be supplied to force IPv4 mode,
151151 // 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 ( ) {
153153 const req = http . get ( `${ server . url } /hello/world` , res => {
154154 t . equal ( res . statusCode , 500 , 'server should respond with status code 500' )
155155 res . resume ( )
@@ -211,7 +211,7 @@ test('error reporting from chained handler given as array', function (t) {
211211
212212 // NOTE: Hostname must be supplied to force IPv4 mode,
213213 // otherwise this will use IPv6, which fails on Travis CI.
214- server . listen ( null , '0.0.0.0' , function ( ) {
214+ server . listen ( 0 , '0.0.0.0' , function ( ) {
215215 const req = http . get ( `${ server . url } /hello/world` , res => {
216216 t . equal ( res . statusCode , 500 , 'server should respond with status code 500' )
217217 res . resume ( )
0 commit comments