Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 28b3824

Browse files
committed
fix unit tests
1 parent c70f912 commit 28b3824

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/client/providers/testprovider.ts

+2-6
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,8 @@ export function activateUnitTestProvider(context: vscode.ExtensionContext, setti
2323
function runUnitTests(filePath: string = "") {
2424
pythonOutputChannel.clear();
2525

26-
var promise = [];
27-
testProviders.forEach(t=> {
28-
promise.push(t.runTests(filePath));
29-
});
30-
31-
Promise.all(promise).then(() => {
26+
var promises = testProviders.map(t=> t.runTests(filePath));
27+
Promise.all(promises).then(() => {
3228
pythonOutputChannel.show();
3329
})
3430
}

0 commit comments

Comments
 (0)