File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
spring-rabbit/src/test/java/org/springframework/amqp/rabbit/connection Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -1512,6 +1512,7 @@ public void testConsumerChannelPhysicallyClosedWhenNotIsOpenGuts(boolean confirm
1512
1512
return null ;
1513
1513
}).when (mockChannel ).close ();
1514
1514
channel .close ();
1515
+ RabbitUtils .setPhysicalCloseRequired (channel , false );
1515
1516
con .close (); // should be ignored
1516
1517
1517
1518
assertTrue (physicalCloseLatch .await (10 , TimeUnit .SECONDS ));
@@ -1649,6 +1650,7 @@ public void testReturnsNormalCloseDeferredClose() throws Exception {
1649
1650
Channel channel = conn .createChannel (false );
1650
1651
RabbitUtils .setPhysicalCloseRequired (channel , true );
1651
1652
channel .close ();
1653
+ RabbitUtils .setPhysicalCloseRequired (channel , false );
1652
1654
Thread .sleep (6000 );
1653
1655
}
1654
1656
You can’t perform that action at this time.
0 commit comments