Repository navigation
Remove the Npgsql.DependencyInjection.Tests project - #6617
Conversation
Now that dependency injection has been merged into the main project (npgsql#6594) the dependency injection tests can also be moved into the main test project.
There was a problem hiding this comment.
Pull request overview
This PR removes the standalone Npgsql.DependencyInjection.Tests test project now that dependency injection functionality has been merged into the main Npgsql project, consolidating the DI tests under the primary Npgsql.Tests project.
Changes:
- Updates
DependencyInjectionTests.csto use theNpgsql.Testsnamespace (removing the oldNpgsql.DependencyInjection.Testsnamespace and redundantusing). - Deletes the
test/Npgsql.DependencyInjection.Teststest project file. - Removes the deleted test project from the solution (
Npgsql.slnx).
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| test/Npgsql.Tests/DependencyInjectionTests.cs | Aligns DI test namespace with the main test assembly (Npgsql.Tests). |
| test/Npgsql.DependencyInjection.Tests/Npgsql.DependencyInjection.Tests.csproj | Removes the now-obsolete standalone DI test project. |
| Npgsql.slnx | Drops the removed DI test project from the solution definition. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Interesting: run 28742228054 failed with many errors related to temp_table* structures, but after applying the commit from #6614 (which was not merged), all tests are passing in run 28745764116. |
roji
left a comment
There was a problem hiding this comment.
Makes sense, thanks for taking care of this!
|
Ah, can you please undo the unrelated process ID changes? We're looking at solving this in other ways. The problem with just injecting process IDs is that these tables will accumulate forever (they don't get cleaned up). |
14b2e20 to
e143366
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.
Comments suppressed due to low confidence (1)
test/Npgsql.Tests/DependencyInjectionTests.cs:6
ServiceCollection/BuildServiceProvider()come from theMicrosoft.Extensions.DependencyInjectionpackage. After moving these tests intotest/Npgsql.Tests, that test project doesn’t appear to referenceMicrosoft.Extensions.DependencyInjection, so this file will fail to compile against the test project's current package set.
|
Sure, I just removed the last commit and force pushed. I just wanted to confirm whether my change was the cause of the failing tests or not. It seems it's unrelated. 😀 |
Now that dependency injection has been merged into the main project (#6594) the dependency injection tests can also be moved into the main test project.