@@ -1887,52 +1887,6 @@ describe('Cursor', function () {
1887
1887
}
1888
1888
) ;
1889
1889
1890
- it ( 'shouldAwaitData' , {
1891
- // Add a tag that our runner can trigger on
1892
- // in this case we are setting that node needs to be higher than 0.10.X to run
1893
- metadata : {
1894
- requires : { topology : [ 'single' , 'replicaset' , 'sharded' ] }
1895
- } ,
1896
-
1897
- test : function ( done ) {
1898
- // www.mongodb.com/docs/display/DOCS/Tailable+Cursors
1899
-
1900
- const configuration = this . configuration ;
1901
- client . connect ( ( err , client ) => {
1902
- expect ( err ) . to . not . exist ;
1903
- this . defer ( ( ) => client . close ( ) ) ;
1904
-
1905
- const db = client . db ( configuration . db ) ;
1906
- const options = { capped : true , size : 8 } ;
1907
- db . createCollection (
1908
- 'should_await_data_retry_tailable_cursor' ,
1909
- options ,
1910
- ( err , collection ) => {
1911
- expect ( err ) . to . not . exist ;
1912
-
1913
- collection . insert ( { a : 1 } , configuration . writeConcernMax ( ) , err => {
1914
- expect ( err ) . to . not . exist ;
1915
-
1916
- // Create cursor with awaitData, and timeout after the period specified
1917
- const cursor = collection . find ( { } , { tailable : true , awaitData : true } ) ;
1918
- this . defer ( ( ) => cursor . close ( ) ) ;
1919
-
1920
- // Execute each
1921
- cursor . forEach (
1922
- ( ) => cursor . close ( ) ,
1923
- ( ) => {
1924
- // Even though cursor is exhausted, should not close session
1925
- // unless cursor is manually closed, due to awaitData / tailable
1926
- done ( ) ;
1927
- }
1928
- ) ;
1929
- } ) ;
1930
- }
1931
- ) ;
1932
- } ) ;
1933
- }
1934
- } ) ;
1935
-
1936
1890
it ( 'shouldAwaitDataWithDocumentsAvailable' , function ( done ) {
1937
1891
// www.mongodb.com/docs/display/DOCS/Tailable+Cursors
1938
1892
0 commit comments