Skip to content

Commit b1e9031

Browse files
author
Kartik Raj
authored
Don't loop selection through all failed tests every time tests are run (#13000)
1 parent 703483d commit b1e9031

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

news/2 Fixes/11743.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Don't loop selection through all failed tests every time tests are run.

src/client/testing/explorer/treeView.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ export class TreeViewService implements IExtensionSingleActivationService, IDisp
4040
);
4141
}
4242
public async onRevealTestItem(testItem: TestDataItem): Promise<void> {
43-
await this.treeView.reveal(testItem);
43+
await this.treeView.reveal(testItem, { select: false });
4444
}
4545
}

src/test/testing/explorer/treeView.unit.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ suite('Unit Tests Test Explorer Tree View', () => {
5757
test('Invoking the command handler will reveal the node in the tree', async () => {
5858
const data = {} as any;
5959
treeView
60-
.setup((t) => t.reveal(typemoq.It.isAny()))
60+
.setup((t) => t.reveal(typemoq.It.isAny(), { select: false }))
6161
.returns(() => Promise.resolve())
6262
.verifiable(typemoq.Times.once());
6363
when(appShell.createTreeView('python_tests', anything())).thenReturn(treeView.object);

0 commit comments

Comments
 (0)