Skip to content

chore: disposable follow-up 2#39517

Merged
pavelfeldman merged 1 commit intomicrosoft:mainfrom
pavelfeldman:disposable_2
Mar 5, 2026
Merged

chore: disposable follow-up 2#39517
pavelfeldman merged 1 commit intomicrosoft:mainfrom
pavelfeldman:disposable_2

Conversation

@pavelfeldman
Copy link
Member

No description provided.

export function disposeAll(disposables: Disposable[]) {
return Promise.all(disposables.map(d => d.dispose()));
export async function disposeAll(disposables: Disposable[]) {
const copy = [...disposables];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why copy and not just const promises = disposable.map(d => d.dispose()); ?

}

export async function disposeAll(disposables: Disposable[]) {
const copy = [...disposables];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

@github-actions
Copy link
Contributor

github-actions bot commented Mar 5, 2026

Test results for "MCP"

2 failed
❌ [chrome] › mcp/http.spec.ts:210 › http transport browser lifecycle (persistent) @mcp-macos-15
❌ [chromium] › mcp/http.spec.ts:210 › http transport browser lifecycle (persistent) @mcp-macos-15

5222 passed, 171 skipped


Merge workflow run.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 5, 2026

Test results for "tests 1"

3 failed
❌ [default-trace] › run-tests.spec.ts:979 › should produce output twice @vscode-extension
❌ [playwright-test] › expect.spec.ts:622 › should print pending operations for toHaveText @macos-latest-node20
❌ [playwright-test] › ui-mode-test-network-tab.spec.ts:371 › should not preserve selection across test runs @macos-latest-node20

3 flaky ⚠️ [chromium-library] › library/trace-viewer.spec.ts:1216 › should display language-specific locators `@ubuntu-22.04-chromium-tip-of-tree`
⚠️ [firefox-library] › library/inspector/cli-codegen-1.spec.ts:1080 › cli codegen › should not throw csp directive violation errors `@firefox-ubuntu-22.04-node20`
⚠️ [firefox-library] › library/trace-viewer.spec.ts:1216 › should display language-specific locators `@firefox-ubuntu-22.04-node20`

38790 passed, 841 skipped


Merge workflow run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants