Skip to content

Commit fc2f2a7

Browse files
author
Simon MacMullen
committed
Revert (inadvertent?) changes to frame-max tests.
1 parent 699bf79 commit fc2f2a7

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

test/src/com/rabbitmq/client/test/functional/FrameMax.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
import com.rabbitmq.client.impl.FrameHandler;
3535
import com.rabbitmq.client.impl.LongStringHelper;
3636
import com.rabbitmq.client.impl.SocketFrameHandler;
37-
import com.rabbitmq.tools.Host;
3837

3938
public class FrameMax extends BrokerTestCase {
4039
/* This value for FrameMax is larger than the minimum and less
@@ -74,15 +73,12 @@ public void testFrameSizes()
7473
public void testRejectLargeFramesDuringConnectionNegotiation()
7574
throws IOException
7675
{
77-
Host.rabbitmqctl("eval 'application:set_env(rabbit, frame_max, " + Integer.toString(AMQP.FRAME_MIN_SIZE) + ").'");
7876
ConnectionFactory cf = new ConnectionFactory();
7977
cf.getClientProperties().put("too_long", LongStringHelper.asLongString(new byte[AMQP.FRAME_MIN_SIZE]));
8078
try {
8179
cf.newConnection();
8280
fail("Expected exception during connection negotiation");
8381
} catch (IOException e) {
84-
} finally {
85-
Host.rabbitmqctl("eval 'application:set_env(rabbit, frame_max, 131072).'");
8682
}
8783
}
8884

@@ -93,7 +89,6 @@ public void testRejectExceedingFrameMax()
9389
{
9490
closeChannel();
9591
closeConnection();
96-
9792
ConnectionFactory cf = new GenerousConnectionFactory();
9893
connection = cf.newConnection();
9994
openChannel();

0 commit comments

Comments
 (0)