Skip to content

Commit 2574d89

Browse files
MichelZbenrr101
authored andcommitted
Disable more tests for Azure
1 parent 2377745 commit 2574d89

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

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

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

182-
// Azure Database does not support Server scoped XEvents
183-
if (!Utils.IsAzureSqlServer(new SqlConnectionStringBuilder(connectionString).DataSource))
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))
184184
{
185-
TestXEventsStreaming(connectionString);
185+
return;
186186
}
187187

188+
TestXEventsStreaming(connectionString);
189+
188190
// These tests fail with named pipes, since they try to do DNS lookups on named pipe paths.
189191
if (!usingNamePipes)
190192
{
@@ -263,6 +265,11 @@ private static void MultipleResults(string connectionString)
263265
}
264266
}
265267

268+
private static bool IsAzureSqlServer(string connectionString)
269+
{
270+
return Utils.IsAzureSqlServer(new SqlConnectionStringBuilder(connectionString).DataSource);
271+
}
272+
266273
private static void InvalidRead(string connectionString)
267274
{
268275
using (SqlConnection c = new SqlConnection(connectionString))

0 commit comments

Comments
 (0)