Skip to content

Add missing tests: NetworkManager.spec.ts (#2176)#3260

Merged
kblok merged 1 commit intomasterfrom
import-tests-2176
Feb 27, 2026
Merged

Add missing tests: NetworkManager.spec.ts (#2176)#3260
kblok merged 1 commit intomasterfrom
import-tests-2176

Conversation

@kblok
Copy link
Member

@kblok kblok commented Feb 27, 2026

Summary

  • Add three missing error handling tests from upstream NetworkManager.test.ts: should not throw on target close error, should not throw on unsupported errors, and should throw on non-TargetClose errors
  • Fix NetworkManager.Apply* methods to add CanIgnoreError catch blocks matching upstream behavior, so errors like TargetClosedException and "Not supported" are silently ignored

Test plan

  • All 10 NetworkManager tests pass (including 3 new ones)
  • Build succeeds with no warnings or errors

Closes #2176

🤖 Generated with Claude Code

Add three error handling tests from upstream NetworkManager.test.ts:
- should not throw on target close error
- should not throw on unsupported errors
- should throw on non-TargetClose errors

Also fix NetworkManager Apply* methods to match upstream error handling
by adding CanIgnoreError catch blocks to each method.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@kblok kblok merged commit b6d0383 into master Feb 27, 2026
14 checks passed
@kblok kblok deleted the import-tests-2176 branch February 27, 2026 11:50
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.

Add missing tests NetworkManager.spec.ts

1 participant