Skip to content

Commit a6a257f

Browse files
committed
Inhibited tests that fail on Azure or Named Instances.
1 parent c8f933d commit a6a257f

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
using System.Threading;
1313
using System.Threading.Tasks;
1414
using System.Xml;
15+
using Microsoft.Data.SqlClient.TestUtilities;
1516
using Xunit;
1617

1718
namespace Microsoft.Data.SqlClient.ManualTesting.Tests
@@ -179,7 +180,15 @@ private static void RunAllTestsForSingleServer(string connectionString, bool usi
179180
ReadTextReader(connectionString);
180181
StreamingBlobDataTypes(connectionString);
181182
OutOfOrderGetChars(connectionString);
182-
TestXEventsStreaming(connectionString);
183+
184+
// These tests fail on Azure or Named Instances, so skip them for
185+
// those contexts.
186+
var dataSource = new SqlConnectionStringBuilder(connectionString).DataSource;
187+
if (!Utils.IsAzureSqlServer(dataSource)
188+
&& !dataSource.Contains(@"\"))
189+
{
190+
TestXEventsStreaming(connectionString);
191+
}
183192

184193
// These tests fail with named pipes, since they try to do DNS lookups on named pipe paths.
185194
if (!usingNamePipes)

0 commit comments

Comments
 (0)