File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed 
src/Microsoft.Data.SqlClient/tests/ManualTests/SQL/DataReaderTest Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff 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                        { 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments