Repository navigation
[4.0] Implement cleanup defunct silo entries ado net clustering - #7928
ReubenBond merged 5 commits into
Conversation
8805208 to
63f8049
Compare
4c5bf9e to
dcd0be5
Compare
dcd0be5 to
7432d0c
Compare
6300d50 to
234a3ac
Compare
48d4fd4 to
d57a10d
Compare
d57a10d to
31e8fc9
Compare
| // Concatenate scripts | ||
| foreach (var fileName in testStorage.SetupSqlScriptFileNames) | ||
| { | ||
| Console.WriteLine($"Processing {fileName}"); |
There was a problem hiding this comment.
We should either delete this or make it use ITestOutputHelper (an xUnit concept for logging during tests)
There was a problem hiding this comment.
So I tried to do that, then I got to that method which is static and used in a few places.
The static helper class, TestContext, which exposes WriteLine was introduced via xunit/xunit@850587b which is xUnit and we are on 2.4.1.
If you're fine with it, I can pass ITextOutputHelper from the callers as a parameter, but that feels dirty.
Is there anything stopping us from upgrading xunit? I imagine lots of breaking changes or you'd had done it already.
If upgrading is not an option, I can make our own TestContext :)
There was a problem hiding this comment.
Passing it as a parameter or deleting the line are both fine options to me
There was a problem hiding this comment.
Upgrading xUnit is fine, too
There was a problem hiding this comment.
note: there are more than just that one Console.WriteLine in that method, sooo all or none. I'll figure it out.
There was a problem hiding this comment.
xunit.v3 isn't a thing yet apparently.
Yeah, that didn't go well. you can see the commit I made with the changes to remove Console.WriteLine. I'm not familiar enough with xUnit to know how to fix this. If you know, happy to re-revert and do it.
I just removed the offending line.
| { | ||
| class PostgreSqlStorageForTesting : RelationalStorageForTesting | ||
| { | ||
| protected override string ProviderMoniker => "PostgreSQL"; |
There was a problem hiding this comment.
Is this the same as AdoNetInvariant?
There was a problem hiding this comment.
No, those are the full names of the drivers to use.
b04db39 to
3fe5fda
Compare
This reverts commit 3fe5fda.

Resolves #7171.
Separate PR for 3.x. is #7929.
Microsoft Reviewers: Open in CodeFlow