File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -19,5 +19,7 @@ if [[ "$OS" == "Windows_NT" ]]; then
19
19
export PATH
20
20
echo " updated path on windows PATH=$PATH "
21
21
else
22
+ # Turn off tracing for the very-spammy nvm script.
23
+ set +o xtrace
22
24
[ -s " $NVM_DIR /nvm.sh" ] && source " $NVM_DIR /nvm.sh"
23
25
fi
Original file line number Diff line number Diff line change @@ -571,10 +571,17 @@ async fn find_and_getmore_share_session() {
571
571
. read_concern ( ReadConcern :: local ( ) )
572
572
. build ( ) ;
573
573
574
- let mut cursor = coll
575
- . find ( doc ! { } , options)
576
- . await
577
- . expect ( "find should succeed" ) ;
574
+ // Loop until data is found to avoid racing with replication.
575
+ let mut cursor;
576
+ loop {
577
+ cursor = coll
578
+ . find ( doc ! { } , options. clone ( ) )
579
+ . await
580
+ . expect ( "find should succeed" ) ;
581
+ if cursor. has_next ( ) {
582
+ break ;
583
+ }
584
+ }
578
585
579
586
for _ in 0 ..3 {
580
587
cursor
You can’t perform that action at this time.
0 commit comments