File tree 1 file changed +3
-3
lines changed
src/client/testing/testController
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ export class WorkspaceTestAdapter {
83
83
84
84
let rawTestExecData ;
85
85
const testCaseNodes : TestItem [ ] = [ ] ;
86
- const testCaseIds : string [ ] = [ ] ;
86
+ const testCaseIdsSet = new Set < string > ( ) ;
87
87
try {
88
88
// first fetch all the individual test Items that we necessarily want
89
89
includes . forEach ( ( t ) => {
@@ -95,10 +95,10 @@ export class WorkspaceTestAdapter {
95
95
runInstance . started ( node ) ; // do the vscode ui test item start here before runtest
96
96
const runId = this . vsIdToRunId . get ( node . id ) ;
97
97
if ( runId ) {
98
- testCaseIds . push ( runId ) ;
98
+ testCaseIdsSet . add ( runId ) ;
99
99
}
100
100
} ) ;
101
-
101
+ const testCaseIds = Array . from ( testCaseIdsSet ) ;
102
102
// ** execution factory only defined for new rewrite way
103
103
if ( executionFactory !== undefined ) {
104
104
rawTestExecData = await this . executionAdapter . runTests (
You can’t perform that action at this time.
0 commit comments