Skip to content

Commit 178c7cf

Browse files
MichelZbenrr101
authored andcommitted
Also disable named instances
1 parent 76af285 commit 178c7cf

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/Microsoft.Data.SqlClient/tests/ManualTests/SQL/DataStreamTest/DataStreamTest.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@ private static void RunAllTestsForSingleServer(string connectionString, bool usi
179179
StreamingBlobDataTypes(connectionString);
180180
OutOfOrderGetChars(connectionString);
181181

182-
// Azure Database does not support Server scoped XEvents and the timeout tests use the ProxyServer which also does not work
183-
if (IsAzureSqlServer(connectionString))
182+
// Azure Database does not support Server scoped XEvents and the timeout tests use the ProxyServer which also does not work on Azure and on named instances
183+
if (IsAzureSqlServer(connectionString) || IsNamedInstance(connectionString))
184184
{
185185
return;
186186
}
@@ -269,6 +269,11 @@ private static bool IsAzureSqlServer(string connectionString)
269269
{
270270
return Utils.IsAzureSqlServer(new SqlConnectionStringBuilder(connectionString).DataSource);
271271
}
272+
273+
private static bool IsNamedInstance(string connectionString)
274+
{
275+
return new SqlConnectionStringBuilder(connectionString).DataSource.Contains(@"\");
276+
}
272277

273278
private static void InvalidRead(string connectionString)
274279
{

0 commit comments

Comments
 (0)