@@ -144,7 +144,7 @@ describe('captureMySQL', function() {
144144 query . call ( connectionObj , 'sql here' , [ 1 ] ) ;
145145
146146 stubDataInit . should . have . been . calledWithExactly ( undefined , undefined , config . user ,
147- config . host + ':' + config . port + '/' + config . database , 'statement' ) ;
147+ 'mysql://' + config . host + ':' + config . port + '/' + config . database , 'statement' ) ;
148148 stubAddSql . should . have . been . calledWithExactly ( sinon . match . instanceOf ( SqlData ) ) ;
149149 } ) ;
150150
@@ -256,7 +256,7 @@ describe('captureMySQL', function() {
256256 query . call ( connectionObj , 'sql here' , [ 1 ] ) ;
257257
258258 stubDataInit . should . have . been . calledWithExactly ( process . env . MYSQL_DATABASE_VERSION , process . env . MYSQL_DRIVER_VERSION ,
259- conParam . user , conParam . host + ':' + conParam . port + '/' + conParam . database , 'statement' ) ;
259+ conParam . user , 'mysql://' + conParam . host + ':' + conParam . port + '/' + conParam . database , 'statement' ) ;
260260 stubAddSql . should . have . been . calledWithExactly ( sinon . match . instanceOf ( SqlData ) ) ;
261261 stubAddSql . should . have . been . calledWithExactly ( sinon . match . has ( 'sanitized_query' , 'sql here' ) ) ;
262262 } ) ;
@@ -269,7 +269,7 @@ describe('captureMySQL', function() {
269269 query . call ( connectionObj , 'sql here' , [ 1 ] ) ;
270270
271271 stubDataInit . should . have . been . calledWithExactly ( process . env . MYSQL_DATABASE_VERSION , process . env . MYSQL_DRIVER_VERSION ,
272- conParam . user , conParam . host + ':' + conParam . port + '/' + conParam . database , 'statement' ) ;
272+ conParam . user , 'mysql://' + conParam . host + ':' + conParam . port + '/' + conParam . database , 'statement' ) ;
273273 stubAddSql . should . have . been . calledWithExactly ( sinon . match . instanceOf ( SqlData ) ) ;
274274 sinon . assert . match ( sinon . match , {
275275 'sanitized_query' : undefined
@@ -349,7 +349,7 @@ describe('captureMySQL', function() {
349349
350350 resolvedConn . query ( 'sql here' ) . then ( function ( ) {
351351 stubDataInit . should . have . been . calledWithExactly ( undefined , undefined , config . user ,
352- config . host + ':' + config . port + '/' + config . database , 'statement' ) ;
352+ 'mysql://' + config . host + ':' + config . port + '/' + config . database , 'statement' ) ;
353353 stubAddSql . should . have . been . calledWithExactly ( sinon . match . instanceOf ( SqlData ) ) ;
354354 } ) ;
355355 } ) ;
@@ -460,7 +460,7 @@ describe('captureMySQL', function() {
460460 query . call ( connectionObj , 'sql here' , [ 1 ] ) ;
461461
462462 stubDataInit . should . have . been . calledWithExactly ( undefined , undefined , config . user ,
463- config . host + ':' + config . port + '/' + config . database , 'statement' ) ;
463+ 'mysql://' + config . host + ':' + config . port + '/' + config . database , 'statement' ) ;
464464 stubAddSql . should . have . been . calledWithExactly ( sinon . match . instanceOf ( SqlData ) ) ;
465465 } ) ;
466466
@@ -556,7 +556,7 @@ describe('captureMySQL', function() {
556556 query . call ( connectionObj , 'sql here' , [ 1 ] ) ;
557557
558558 stubDataInit . should . have . been . calledWithExactly ( undefined , undefined , config . user ,
559- config . host + ':' + config . port + '/' + config . database , 'statement' ) ;
559+ 'mysql://' + config . host + ':' + config . port + '/' + config . database , 'statement' ) ;
560560 stubAddSql . should . have . been . calledWithExactly ( sinon . match . instanceOf ( SqlData ) ) ;
561561 } ) ;
562562
@@ -703,7 +703,7 @@ describe('captureMySQL', function() {
703703 query . call ( connectionObj , 'sql here' , [ 1 ] ) ;
704704
705705 stubDataInit . should . have . been . calledWithExactly ( undefined , undefined , config . user ,
706- config . host + ':' + config . port + '/' + config . database , 'statement' ) ;
706+ 'mysql://' + config . host + ':' + config . port + '/' + config . database , 'statement' ) ;
707707 stubAddSql . should . have . been . calledWithExactly ( sinon . match . instanceOf ( SqlData ) ) ;
708708 } ) ;
709709
0 commit comments