@@ -1491,33 +1491,33 @@ describe('Spanner with mock server', () => {
14911491 } ) ;
14921492
14931493 describe ( 'LeaderAwareRouting' , ( ) => {
1494- let spannerWithLAREnabled : Spanner ;
1495- let instanceWithLAREnabled : Instance ;
1494+ let spannerWithLARDisabled : Spanner ;
1495+ let instanceWithLARDisabled : Instance ;
14961496
1497- function newTestDatabaseWithLAREnabled (
1497+ function newTestDatabaseWithLARDisabled (
14981498 options ?: SessionPoolOptions ,
14991499 queryOptions ?: IQueryOptions
15001500 ) : Database {
1501- return instanceWithLAREnabled . database (
1501+ return instanceWithLARDisabled . database (
15021502 `database-${ dbCounter ++ } ` ,
15031503 options ,
15041504 queryOptions
15051505 ) ;
15061506 }
15071507
15081508 before ( ( ) => {
1509- spannerWithLAREnabled = new Spanner ( {
1509+ spannerWithLARDisabled = new Spanner ( {
15101510 servicePath : 'localhost' ,
15111511 port,
15121512 sslCreds : grpc . credentials . createInsecure ( ) ,
1513- routeToLeaderEnabled : true ,
1513+ routeToLeaderEnabled : false ,
15141514 } ) ;
15151515 // Gets a reference to a Cloud Spanner instance and database
1516- instanceWithLAREnabled = spannerWithLAREnabled . instance ( 'instance' ) ;
1516+ instanceWithLARDisabled = spannerWithLARDisabled . instance ( 'instance' ) ;
15171517 } ) ;
15181518
15191519 it ( 'should execute with leader aware routing enabled in a read/write transaction' , async ( ) => {
1520- const database = newTestDatabaseWithLAREnabled ( ) ;
1520+ const database = newTestDatabase ( ) ;
15211521 await database . runTransactionAsync ( async tx => {
15221522 await tx ! . runUpdate ( {
15231523 sql : insertSql ,
@@ -1539,7 +1539,7 @@ describe('Spanner with mock server', () => {
15391539 } ) ;
15401540
15411541 it ( 'should execute with leader aware routing disabled in a read/write transaction' , async ( ) => {
1542- const database = newTestDatabase ( ) ;
1542+ const database = newTestDatabaseWithLARDisabled ( ) ;
15431543 await database . runTransactionAsync ( async tx => {
15441544 await tx ! . runUpdate ( {
15451545 sql : insertSql ,
0 commit comments