@@ -73,6 +73,7 @@ describe('Entry Processor', function() {
7373 } ) ;
7474
7575 it ( 'executeOnEntries should modify entries' , function ( ) {
76+ this . timeout ( 4000 ) ;
7677 return map . executeOnEntries ( new SimpleEntryProcessor ( ) ) . then ( function ( ) {
7778 return map . entrySet ( ) ;
7879 } ) . then ( function ( entries ) {
@@ -83,6 +84,7 @@ describe('Entry Processor', function() {
8384 } ) ;
8485
8586 it ( 'executeOnEntries should return modified entries' , function ( ) {
87+ this . timeout ( 4000 ) ;
8688 return map . executeOnEntries ( new SimpleEntryProcessor ( ) ) . then ( function ( entries ) {
8789 expect ( entries ) . to . have . lengthOf ( MAP_SIZE ) ;
8890 expect ( entries . every ( function ( entry ) {
@@ -92,6 +94,7 @@ describe('Entry Processor', function() {
9294 } ) ;
9395
9496 it ( 'executeOnEntries with predicate should modify entries' , function ( ) {
97+ this . timeout ( 4000 ) ;
9598 return map . executeOnEntries ( new SimpleEntryProcessor ( ) , Predicates . regex ( 'this' , '^[01]$' ) ) . then ( function ( ) {
9699 return map . getAll ( [ "0" , "1" , "2" ] ) ;
97100 } ) . then ( function ( entries ) {
@@ -100,6 +103,7 @@ describe('Entry Processor', function() {
100103 } ) ;
101104
102105 it ( 'executeOnEntries with predicate should return modified entries' , function ( ) {
106+ this . timeout ( 4000 ) ;
103107 return map . executeOnEntries ( new SimpleEntryProcessor ( ) , Predicates . regex ( 'this' , '^[01]$' ) ) . then ( function ( entries ) {
104108 expect ( entries ) . to . have . lengthOf ( 2 ) ;
105109 expect ( entries . every ( function ( entry ) {
@@ -109,12 +113,14 @@ describe('Entry Processor', function() {
109113 } ) ;
110114
111115 it ( 'executeOnKey should return modified value' , function ( ) {
116+ this . timeout ( 4000 ) ;
112117 return map . executeOnKey ( '4' , new SimpleEntryProcessor ( ) ) . then ( function ( retVal ) {
113118 return expect ( retVal ) . to . equal ( '4processed' ) ;
114119 } ) ;
115120 } ) ;
116121
117122 it ( 'executeOnKey should modify the value' , function ( ) {
123+ this . timeout ( 4000 ) ;
118124 return map . executeOnKey ( '4' , new SimpleEntryProcessor ( ) ) . then ( function ( ) {
119125 return map . get ( '4' ) ;
120126 } ) . then ( function ( value ) {
@@ -123,12 +129,14 @@ describe('Entry Processor', function() {
123129 } ) ;
124130
125131 it ( 'executeOnKeys should return modified entries' , function ( ) {
132+ this . timeout ( 4000 ) ;
126133 return map . executeOnKeys ( [ '4' , '5' ] , new SimpleEntryProcessor ( ) ) . then ( function ( entries ) {
127134 return expect ( entries ) . to . deep . have . members ( [ [ '4' , '4processed' ] , [ '5' , '5processed' ] ] ) ;
128135 } ) ;
129136 } ) ;
130137
131138 it ( 'executeOnKeys should modify the entries' , function ( ) {
139+ this . timeout ( 4000 ) ;
132140 return map . executeOnKeys ( [ '4' , '5' ] , new SimpleEntryProcessor ( ) ) . then ( function ( ) {
133141 return map . getAll ( [ '4' , '5' ] ) ;
134142 } ) . then ( function ( entries ) {
@@ -137,6 +145,7 @@ describe('Entry Processor', function() {
137145 } ) ;
138146
139147 it ( 'executeOnKeys with empty array should return empty array' , function ( ) {
148+ this . timeout ( 4000 ) ;
140149 return map . executeOnKeys ( [ ] , new SimpleEntryProcessor ( ) ) . then ( function ( entries ) {
141150 return expect ( entries ) . to . have . lengthOf ( 0 ) ;
142151 } ) ;
0 commit comments