Skip to content
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

Fixes to TwoDatabasesTest #19707

Merged
merged 1 commit into from
Jan 26, 2020
Merged

Fixes to TwoDatabasesTest #19707

merged 1 commit into from
Jan 26, 2020

Conversation

roji
Copy link
Member

@roji roji commented Jan 25, 2020

The tests in TwoDatabasesTest extract a connection string from a DbContext after its connection has been opened. This usually means that the password is scrubbed out when Persist Security Info=false (the default), so the connection string is copied without it. The EF Core tests use LocalDB and Sqlite where there's no security info in the connection string.

Also made tests virtual.

@roji roji requested a review from ajcvickers January 25, 2020 18:48
roji added a commit to roji/efcore.pg that referenced this pull request Jan 25, 2020
Capture connection strings including security info before it's gone
(Persist Security Info=false)
@roji roji merged commit 973b1ea into master Jan 26, 2020
@roji roji deleted the TwoDatabasesTestFixes branch January 26, 2020 00:34
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