Skip to content

Commit f292157

Browse files
committed
Introduce wait between tests
1 parent 5174c81 commit f292157

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/test/tools/tester/TestSuite.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import { GlobSync } from 'glob'
33
import * as path from 'path'
44
import { ExTester, ReleaseQuality } from 'vscode-extension-tester'
5+
import * as PollingUtils from '../utils/PollingUtils'
56
import * as fs from 'fs';
67
import * as os from 'os';
78

@@ -76,6 +77,7 @@ export class TestSuite {
7677
console.log(err)
7778
process.exit(1)
7879
}
80+
PollingUtils.pause(30000); //endure state is reset before running next test
7981
}
8082
}
8183
}

src/test/tools/utils/PollingUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import * as assert from 'assert'
55
const DEFAULT_TIMEOUT = 30000;
66

77
/**
8-
* Pause the test for the speecified time
8+
* Pause the test for the specified time
99
*/
1010
export const pause = async (ms: number): Promise<void> => await new Promise((resolve) => setTimeout(resolve, ms))
1111

0 commit comments

Comments
 (0)