-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move Thread_safety_in_relational_command_cache out of QueryBugsTest #25815
Comments
Move where though? |
I don't know :) We'd have to think of something. |
BTW maybe it can just be in on of the regular test suites - it doesn't need any specific database schema, so any test suite where DbContext instances don't share DbConnections should be fine... |
I mean what issue the test particularly have inside query bugs test? As part of deprecating QueryBugsTest, we have non shared model tests which are somewhat provider agnostic. |
Maybe in SqlServerEndToEnd tests? |
To make that test use connection string replace the first line with var contextFactory = await InitializeAsync<MyContext21666>(
onConfiguring: options =>((IDbContextOptionsBuilderInfrastructure)options).AddOrUpdateExtension(
options.Options.FindExtension<SqlServerOptionsExtension>()
.WithConnection(null)
.WithConnectionString(SqlServerTestStore.CreateConnectionString(StoreName)))); |
As part of dotnet/SqlClient#1234, it turns out we have a concurrent test (Thread_safety_in_relational_command_cache) in QueryBugsTest, which reuses the same SqlConnection instance. This isn't an actual problem at the moment since SqlClient's unmanaged Windows networking implementation seems fully thread-safe, but this test would fail badly on Linux/Mac. It also fails/blocks on SqlClient 4.0.0-preview.1.
The text was updated successfully, but these errors were encountered: