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)
355
355
}
356
356
}
357
357
358
- [ Test , Ignore ( "Needs plugin." ) ]
358
+ [ Test , Explicit ]
359
359
public void PassCryptKey ( )
360
360
{
361
361
var csb = BuildConnectionStringBuilder ( FbServerType , Compression ) ;
@@ -366,6 +366,34 @@ public void PassCryptKey()
366
366
}
367
367
}
368
368
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
+
369
397
#endregion
370
398
371
399
#region Methods
You can’t perform that action at this time.
0 commit comments