Skip to content

Commit 7c83d39

Browse files
committed
simplify ETimer.TASK test cause postTask polyfill is leaking in deno?
Signed-off-by: 🕷️ <[email protected]>
1 parent a8785b6 commit 7c83d39

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/time_test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,13 +171,12 @@ describe('Timer - task', () => {
171171
let counter = 0;
172172
const task = new Timer({ type: ETimer.TASK, delay: DELAY }, () => {
173173
counter++;
174-
task.start();
175174
});
176175

177176
task.start();
178177
expect(task.isPending()).toBe(true);
179178
await wait(DELAY + DELAY / 2);
180-
task.stop();
179+
181180
expect(task.isPending()).toBe(false);
182181
expect(counter).toBe(1);
183182
});

0 commit comments

Comments
 (0)