From 016fd34c2ea4d2e98beb8fe05e9f018bd76f0e2e Mon Sep 17 00:00:00 2001 From: Eric Cornelson Date: Mon, 18 Mar 2019 15:07:38 -0500 Subject: [PATCH] Removing timer function. This function isn't used, and there's a similar function 'promiseTimeout' in core anyway. --- test/int/intTestSupport.ts | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/test/int/intTestSupport.ts b/test/int/intTestSupport.ts index da49e02..8aeefef 100644 --- a/test/int/intTestSupport.ts +++ b/test/int/intTestSupport.ts @@ -60,15 +60,3 @@ export function setConditionalBreakpoint(client: DebugClient, location: { path: source: { path: location.path } }); } - -/** - * Set a timer. (Note: this method should be used SPARINGLY, if at all, as it will tend to make tests non-deterministic) - * @param ms Milliseconds to wait - */ -export function timer(ms: number): Promise { - return new Promise((a, r) => { - setTimeout(() => { - a(); - }, ms); - }); -}