Skip to content

Commit a42d2c0

Browse files
committed
reduce iterations on new test
1 parent 285fae4 commit a42d2c0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,11 @@ integrated into a comprehensive development
525525

526526
string tableName = DataTestUtility.GenerateObjectName();
527527

528-
using (var connection = new SqlConnection(DataTestUtility.TCPConnectionString))
528+
SqlConnectionStringBuilder builder = new SqlConnectionStringBuilder(DataTestUtility.TCPConnectionString);
529+
builder.PersistSecurityInfo = true;
530+
builder.PacketSize = 3096; // should reproduce failure that this tests for in <100 reads
531+
532+
using (var connection = new SqlConnection(builder.ToString()))
529533
{
530534
await connection.OpenAsync();
531535

@@ -544,7 +548,7 @@ integrated into a comprehensive development
544548
createCommand.ExecuteNonQuery();
545549
}
546550

547-
for (var i = 0; i < 1000; i++)
551+
for (var i = 0; i < 100; i++)
548552
{
549553
using (var insertCommand = connection.CreateCommand())
550554
{

0 commit comments

Comments
 (0)