Skip to content

Commit 285fae4

Browse files
committed
account for xml read canonicalization in tests
1 parent 3213a40 commit 285fae4

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,10 +563,18 @@ integrated into a comprehensive development
563563
command.CommandText = $"SELECT Data FROM [{tableName}] ORDER BY Id";
564564
using (var reader = await command.ExecuteReaderAsync())
565565
{
566+
string expectedResult = null;
566567
while (await reader.ReadAsync())
567568
{
568569
var result = reader.GetString(0);
569-
Assert.Equal(xml, result);
570+
if (expectedResult == null)
571+
{
572+
expectedResult = result;
573+
}
574+
else
575+
{
576+
Assert.Equal(expectedResult, result);
577+
}
570578
id++;
571579
}
572580
}

0 commit comments

Comments
 (0)