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', () => {
148
148
// Now we wait for dueTime (2s)
149
149
await ( new Promise ( resolve => setTimeout ( resolve , 2000 ) ) ) ;
150
150
151
- // Add time to live (2s)
152
- await ( new Promise ( resolve => setTimeout ( resolve , 2000 ) ) ) ;
153
-
154
151
// After that the timer callback will be called
155
152
// In our case, the callback increments the count attribute
156
153
// the count attribute is +100 due to the passed state
157
154
const res1 = await actor . getCounter ( ) ;
158
- expect ( res1 ) . toEqual ( 300 ) ;
155
+ expect ( res1 ) . toEqual ( 100 ) ;
159
156
160
157
// Every 1 second the timer gets called again, so the count attribute should change
161
158
// we check this twice to ensure correct calling
@@ -232,4 +229,4 @@ describe('http/actors', () => {
232
229
await actor . removeReminder ( ) ;
233
230
} ) ;
234
231
} ) ;
235
- } ) ;
232
+ } ) ;
You can’t perform that action at this time.
0 commit comments