@@ -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 const chunks = [ ]
4545 res . on ( 'data' , chunks . push . bind ( chunks ) )
@@ -95,7 +95,7 @@ test('error reporting', function (t) {
9595
9696 // NOTE: Hostname must be supplied to force IPv4 mode,
9797 // otherwise this will use IPv6, which fails on Travis CI.
98- server . listen ( null , '0.0.0.0' , function ( ) {
98+ server . listen ( 0 , '0.0.0.0' , function ( ) {
9999 const req = http . get ( `${ server . url } /hello/world` , res => {
100100 res . resume ( )
101101 res . on ( 'end' , ( ) => {
@@ -147,7 +147,7 @@ test('error reporting from chained handler', function (t) {
147147
148148 // NOTE: Hostname must be supplied to force IPv4 mode,
149149 // otherwise this will use IPv6, which fails on Travis CI.
150- server . listen ( null , '0.0.0.0' , function ( ) {
150+ server . listen ( 0 , '0.0.0.0' , function ( ) {
151151 const req = http . get ( `${ server . url } /hello/world` , res => {
152152 res . resume ( )
153153 res . on ( 'end' , ( ) => {
0 commit comments