File tree Expand file tree Collapse file tree 1 file changed +29
-1
lines changed
Provider/src/FirebirdSql.Data.FirebirdClient.Tests Expand file tree Collapse file tree 1 file changed +29
-1
lines changed Original file line number Diff line number Diff line change @@ -355,7 +355,7 @@ public void UseCompression(bool compression)
355355 }
356356 }
357357
358- [ Test , Ignore ( "Needs plugin." ) ]
358+ [ Test , Explicit ]
359359 public void PassCryptKey ( )
360360 {
361361 var csb = BuildConnectionStringBuilder ( FbServerType , Compression ) ;
@@ -366,6 +366,34 @@ public void PassCryptKey()
366366 }
367367 }
368368
369+ [ Test , Explicit ]
370+ public void DoNotGoBackToPoolAfterBroken ( )
371+ {
372+ var csb = BuildConnectionStringBuilder ( FbServerType , Compression ) ;
373+ using ( var conn = new FbConnection ( csb . ToString ( ) ) )
374+ {
375+ conn . Open ( ) ;
376+ }
377+ using ( var conn = new FbConnection ( csb . ToString ( ) ) )
378+ {
379+ conn . Open ( ) ;
380+ try
381+ {
382+ using ( var cmd = conn . CreateCommand ( ) )
383+ {
384+ cmd . CommandText = "select * from mon$statements union all select * from mon$statements" ;
385+ using ( var reader = cmd . ExecuteReader ( ) )
386+ {
387+ while ( reader . Read ( ) )
388+ { }
389+ }
390+ }
391+ }
392+ catch ( FbException ex )
393+ { }
394+ }
395+ }
396+
369397 #endregion
370398
371399 #region Methods
You can’t perform that action at this time.
0 commit comments