File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
packages/neo4j-driver/test/internal Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -314,12 +314,25 @@ async function cleanupAndGetProtocolVersion (driver) {
314314 const result = await session . writeTransaction ( tx =>
315315 tx . run ( 'MATCH (n) DETACH DELETE n' )
316316 )
317+ await checkBookmarkPropagated ( driver , session . lastBookmark ( ) )
317318 return result . summary . server . protocolVersion
318319 } finally {
319320 await session . close ( )
320321 }
321322}
322323
324+ async function checkBookmarkPropagated ( driver , bookmarks ) {
325+ const session = driver . session ( {
326+ defaultAccessMode : neo4j . session . READ ,
327+ bookmarks
328+ } )
329+ try {
330+ return await session . readTransaction ( tx => tx . run ( 'RETURN 1 AS n' ) )
331+ } finally {
332+ await session . close ( )
333+ }
334+ }
335+
323336async function getEdition ( driver ) {
324337 const session = driver . session ( { defaultAccessMode : neo4j . session . READ } )
325338 try {
You can’t perform that action at this time.
0 commit comments