Skip to content

Commit a841355

Browse files
paulmedynskiCopilot
andcommitted
Fix managed SNI regression prerequisites on Unix (#4949)
Restrict the Windows managed-SNI configuration check to Windows so Unix can run the MARS teardown regression when SQL prerequisites are met. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 8b19cac commit a841355

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎src/Microsoft.Data.SqlClient/tests/ManualTests/SQL/AsyncTest/MarsReceiveTeardownTest.cs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ public async Task FatalError_WhileMarsReaderStreams_DoesNotFaultReceivePump(bool
8686
public static bool CanRun()
8787
{
8888
if (!DataTestUtility.AreConnStringsSetup() ||
89-
!DataTestUtility.IsNotAzureServer() || !DataTestUtility.IsUsingManagedSNI())
89+
!DataTestUtility.IsNotAzureServer() ||
90+
(OperatingSystem.IsWindows() && !DataTestUtility.IsUsingManagedSNI()))
9091
{
9192
return false;
9293
}

0 commit comments

Comments
 (0)