Skip to content

Commit ec7fab9

Browse files
committed
Reverted the test file
Signed-off-by: Amulya Varote <[email protected]> Signed-off-by: Amulya Varote <[email protected]>
1 parent f6b86c4 commit ec7fab9

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

test/e2e/actors.http.test.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff 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+
});

0 commit comments

Comments
 (0)