Skip to content

Commit e44241e

Browse files
MichelZbenrr101
authored andcommitted
Do not run XEvent test on azure
1 parent 910688a commit e44241e

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

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

Lines changed: 9 additions & 2 deletions
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
@@ -31,7 +32,7 @@ public static void RunAllTestsForSingleServer_NP()
3132
}
3233
}
3334

34-
[ConditionalFact(typeof(DataTestUtility), nameof(DataTestUtility.AreConnStringsSetup))]
35+
[ConditionalFact(typeof(DataTestUtility), nameof(DataTestUtility.AreConnStringsSetup), nameof(DataTestUtility.IsNotAzureServer))]
3536
public static void RunAllTestsForSingleServer_TCP()
3637
{
3738
RunAllTestsForSingleServer(DataTestUtility.TCPConnectionString);
@@ -177,7 +178,12 @@ private static void RunAllTestsForSingleServer(string connectionString, bool usi
177178
ReadTextReader(connectionString);
178179
StreamingBlobDataTypes(connectionString);
179180
OutOfOrderGetChars(connectionString);
180-
TestXEventsStreaming(connectionString);
181+
182+
// Azure Database does not support Server scoped XEvents
183+
if (!Utils.IsAzureSqlServer(connectionString))
184+
{
185+
TestXEventsStreaming(connectionString);
186+
}
181187

182188
// These tests fail with named pipes, since they try to do DNS lookups on named pipe paths.
183189
if (!usingNamePipes)
@@ -186,6 +192,7 @@ private static void RunAllTestsForSingleServer(string connectionString, bool usi
186192
{
187193
TimeoutDuringReadAsyncWithClosedReaderTest(connectionString);
188194
}
195+
189196
NonFatalTimeoutDuringRead(connectionString);
190197
}
191198
}

0 commit comments

Comments
 (0)