@@ -123,24 +123,24 @@ describeIm("Single-server with follower", function() {
123123 it ( "supports dirty reads" , async ( ) => {
124124 expect ( ( conn as any ) . _urls ) . to . have . lengthOf ( 2 ) ;
125125 const res1 = await getResponse ( true ) ;
126- expect ( res1 . host ) . to . be . a ( "number" ) ;
126+ expect ( res1 . arangojsHostId ) . to . be . a ( "number" ) ;
127127 const headers1 = res1 . request . getHeaders ( ) ;
128128 expect ( headers1 ) . to . include . keys ( "x-arango-allow-dirty-read" ) ;
129129 const res2 = await getResponse ( true ) ;
130- expect ( res2 . host ) . to . be . a ( "number" ) ;
131- expect ( res2 . host ) . not . to . equal ( res1 . host ) ;
130+ expect ( res2 . arangojsHostId ) . to . be . a ( "number" ) ;
131+ expect ( res2 . arangojsHostId ) . not . to . equal ( res1 . arangojsHostId ) ;
132132 const headers2 = res2 . request . getHeaders ( ) ;
133133 expect ( headers2 ) . to . include . keys ( "x-arango-allow-dirty-read" ) ;
134134 } ) ;
135135 it ( "supports non-dirty reads" , async ( ) => {
136136 expect ( ( conn as any ) . _urls ) . to . have . lengthOf ( 2 ) ;
137137 const res1 = await getResponse ( ) ;
138- expect ( res1 . host ) . to . be . a ( "number" ) ;
138+ expect ( res1 . arangojsHostId ) . to . be . a ( "number" ) ;
139139 const headers1 = res1 . request . getHeaders ( ) ;
140140 expect ( headers1 ) . not . to . include . keys ( "x-arango-allow-dirty-read" ) ;
141141 const res2 = await getResponse ( ) ;
142- expect ( res2 . host ) . to . be . a ( "number" ) ;
143- expect ( res2 . host ) . to . equal ( res1 . host ) ;
142+ expect ( res2 . arangojsHostId ) . to . be . a ( "number" ) ;
143+ expect ( res2 . arangojsHostId ) . to . equal ( res1 . arangojsHostId ) ;
144144 const headers2 = res2 . request . getHeaders ( ) ;
145145 expect ( headers2 ) . not . to . include . keys ( "x-arango-allow-dirty-read" ) ;
146146 } ) ;
0 commit comments