Repository navigation
Tests: dispose derived web hosts so the full suite stops wedging (closes #1171) - #1172
Merged
Merged
Conversation
…e resolver on restore
…lock the FastEndpoints resolver
…ore it starts, pin the restore guard
This was referenced Nov 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The shared IntegrationTestFixture now tracks every host derived with WithWebHostBuilder and disposes the ones a finished class built when another class derives its first host. Before, about 60 call sites left their hosts running to the end of the run, each polling Postgres on unpooled connections.
FastEndpoints keeps a static ServiceResolver.Instance, set by each host that maps endpoints. Disposing the last such host left it on a disposed provider, which is why FileStoreSeamTests said never to dispose. After a release the fixture moves it to the newest host still up (FastEndpointsResolver.RepairIfDisposed).
Built clean. Tests are queued (full tier, job 162), not run yet.
Fixes #1171