Skip to content

Commit 2a62f94

Browse files
committed
Properly check Azure Server
1 parent 0b7c6da commit 2a62f94

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

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

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,7 @@ public static void RunAllTestsForSingleServer_NP()
3636
[ConditionalFact(typeof(DataTestUtility), nameof(DataTestUtility.AreConnStringsSetup), nameof(DataTestUtility.IsNotNamedInstance))]
3737
public static void RunAllTestsForSingleServer_TCP()
3838
{
39-
try
40-
{
41-
RunAllTestsForSingleServer(DataTestUtility.TCPConnectionString, false);
42-
}
43-
catch (Exception)
44-
{
45-
throw new Exception(DataTestUtility.TCPConnectionString);
46-
}
39+
RunAllTestsForSingleServer(DataTestUtility.TCPConnectionString, false);
4740
}
4841

4942
// Synapse: The statement failed. Column 'foo' has a data type that cannot participate in a columnstore index.
@@ -187,7 +180,7 @@ private static void RunAllTestsForSingleServer(string connectionString, bool usi
187180
StreamingBlobDataTypes(connectionString);
188181
OutOfOrderGetChars(connectionString);
189182

190-
if (!Utils.IsAzureSqlServer(connectionString))
183+
if (!Utils.IsAzureSqlServer(new SqlConnectionStringBuilder(connectionString).DataSource))
191184
{
192185
TestXEventsStreaming(connectionString);
193186
}

0 commit comments

Comments
 (0)