File tree 1 file changed +13
-0
lines changed
packages/neo4j-driver/test/internal
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) {
314
314
const result = await session . writeTransaction ( tx =>
315
315
tx . run ( 'MATCH (n) DETACH DELETE n' )
316
316
)
317
+ await checkBookmarkPropagated ( driver , session . lastBookmark ( ) )
317
318
return result . summary . server . protocolVersion
318
319
} finally {
319
320
await session . close ( )
320
321
}
321
322
}
322
323
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
+
323
336
async function getEdition ( driver ) {
324
337
const session = driver . session ( { defaultAccessMode : neo4j . session . READ } )
325
338
try {
You can’t perform that action at this time.
0 commit comments