File tree 1 file changed +15
-2
lines changed 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -395,8 +395,21 @@ function iResearchFeatureAqlServerSideTestSuite () {
395
395
// on Single server we could also check fs (on cluster we are on
396
396
// coordinator, so nothing to do)
397
397
// no new arangosearch folders should be present
398
- let afterLinkCount = getLinksCount ( ) ;
399
- assertEqual ( beforeLinkCount , afterLinkCount ) ;
398
+ // due to race conditions in FS (on MACs specifically)
399
+ // we will do several attempts
400
+ let tryCount = 3 ;
401
+ while ( tryCount > 0 ) {
402
+ let afterLinkCount = getLinksCount ( ) ;
403
+ if ( afterLinkCount === beforeLinkCount ) {
404
+ break ; // all is ok.
405
+ }
406
+ if ( tryCount > 0 ) {
407
+ tryCount -- ;
408
+ require ( 'internal' ) . sleep ( 5 ) ;
409
+ } else {
410
+ assertEqual ( beforeLinkCount , afterLinkCount ) ;
411
+ }
412
+ }
400
413
} finally {
401
414
db . _drop ( docsCollectionName ) ;
402
415
db . _dropView ( docsViewName ) ;
You can’t perform that action at this time.
0 commit comments