File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -148,14 +148,11 @@ describe('http/actors', () => {
148148 // Now we wait for dueTime (2s)
149149 await ( new Promise ( resolve => setTimeout ( resolve , 2000 ) ) ) ;
150150
151- // Add time to live (2s)
152- await ( new Promise ( resolve => setTimeout ( resolve , 2000 ) ) ) ;
153-
154151 // After that the timer callback will be called
155152 // In our case, the callback increments the count attribute
156153 // the count attribute is +100 due to the passed state
157154 const res1 = await actor . getCounter ( ) ;
158- expect ( res1 ) . toEqual ( 300 ) ;
155+ expect ( res1 ) . toEqual ( 100 ) ;
159156
160157 // Every 1 second the timer gets called again, so the count attribute should change
161158 // we check this twice to ensure correct calling
@@ -232,4 +229,4 @@ describe('http/actors', () => {
232229 await actor . removeReminder ( ) ;
233230 } ) ;
234231 } ) ;
235- } ) ;
232+ } ) ;
You can’t perform that action at this time.
0 commit comments