File tree Expand file tree Collapse file tree 1 file changed +20
-2
lines changed
projects/client/Unit/src/unit Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -50,9 +50,27 @@ namespace RabbitMQ.Client.Unit
50
50
public class TestConnectionChurnHandleLeak : IntegrationFixture
51
51
{
52
52
[ Test ]
53
- public void TestHandleLeak ( )
53
+ public void TestHandleLeakWithDisabledHeartbeats ( )
54
+ {
55
+ var cf = new ConnectionFactory ( )
56
+ {
57
+ RequestedHeartbeat = 0
58
+ } ;
59
+ PerformLeakTest ( cf ) ;
60
+ }
61
+
62
+ [ Test ]
63
+ public void TestHandleLeakWithEnabledHeartbeats ( )
64
+ {
65
+ var cf = new ConnectionFactory ( )
66
+ {
67
+ RequestedHeartbeat = 16
68
+ } ;
69
+ PerformLeakTest ( cf ) ;
70
+ }
71
+
72
+ protected void PerformLeakTest ( ConnectionFactory cf )
54
73
{
55
- var cf = new ConnectionFactory ( ) ;
56
74
var me = Process . GetCurrentProcess ( ) ;
57
75
var n = me . HandleCount ;
58
76
Console . WriteLine ( "{0} handles before the test..." , me . HandleCount ) ;
You can’t perform that action at this time.
0 commit comments