Skip to content

Commit 30a8b2c

Browse files
author
Kartik Raj
committed
Try something
1 parent dbf4130 commit 30a8b2c

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

src/test/linters/lint.multiroot.test.ts

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,22 +33,22 @@ suite('Multiroot Linting', () => {
3333
const flake8Setting = 'linting.flake8Enabled';
3434

3535
let ioc: UnitTestIocContainer;
36-
suiteSetup(function () {
36+
suiteSetup(async function () {
3737
if (!IS_MULTI_ROOT_TEST) {
3838
this.skip();
3939
}
40-
return initialize();
41-
});
42-
setup(async () => {
40+
await initialize();
4341
await initializeDI();
4442
await initializeTest();
4543
});
46-
suiteTeardown(closeActiveWindows);
47-
teardown(async () => {
44+
suiteTeardown(async () => {
4845
await ioc.dispose();
4946
await closeActiveWindows();
5047
PythonSettings.dispose();
5148
});
49+
teardown(async () => {
50+
await closeActiveWindows();
51+
});
5252

5353
async function initializeDI() {
5454
ioc = new UnitTestIocContainer();
@@ -109,11 +109,8 @@ suite('Multiroot Linting', () => {
109109
assert.strictEqual(messages.length > 0, mustHaveErrors, errorMessage);
110110
}
111111

112-
test('Enabling Pylint in root and also in Workspace, should return errors', async function () {
112+
test('Enabling Pylint in root and also in Workspace, should return errors', async () => {
113113
// Timing out on Windows, tracked by #18337.
114-
if (isOs(OSType.Windows)) {
115-
return this.skip();
116-
}
117114

118115
await runTest(Product.pylint, true, true, pylintSetting);
119116

0 commit comments

Comments
 (0)