Skip to content

Commit 616c4a8

Browse files
author
Alexandru Scvortov
committed
reverted changes to QueueExclusivity
1 parent e399e67 commit 616c4a8

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ public void testQueueExclusiveForPassiveDeclare() throws Exception {
6767
try {
6868
channel.queueDeclarePassive(q);
6969
} catch (IOException ioe) {
70-
checkShutdownSignal(AMQP.RESOURCE_LOCKED, ioe);
7170
return;
7271
}
7372
fail("Passive queue declaration of an exclusive queue from another connection should fail");
@@ -79,7 +78,6 @@ public void testQueueExclusiveForDeclare() throws Exception {
7978
try {
8079
channel.queueDeclare(q, false, true, false, noArgs);
8180
} catch (IOException ioe) {
82-
checkShutdownSignal(AMQP.RESOURCE_LOCKED, ioe);
8381
return;
8482
}
8583
fail("Active queue declaration of an exclusive queue from another connection should fail");
@@ -90,7 +88,6 @@ public void testQueueExclusiveForConsume() throws Exception {
9088
try {
9189
channel.basicConsume(q, c);
9290
} catch (IOException ioe) {
93-
checkShutdownSignal(AMQP.RESOURCE_LOCKED, ioe);
9491
return;
9592
}
9693
fail("Exclusive queue should be locked for basic consume from another connection");
@@ -100,7 +97,6 @@ public void testQueueExclusiveForPurge() throws Exception {
10097
try {
10198
channel.queuePurge(q);
10299
} catch (IOException ioe) {
103-
checkShutdownSignal(AMQP.RESOURCE_LOCKED, ioe);
104100
return;
105101
}
106102
fail("Exclusive queue should be locked for queue purge from another connection");
@@ -110,7 +106,6 @@ public void testQueueExclusiveForDelete() throws Exception {
110106
try {
111107
channel.queueDelete(q);
112108
} catch (IOException ioe) {
113-
checkShutdownSignal(AMQP.RESOURCE_LOCKED, ioe);
114109
return;
115110
}
116111
fail("Exclusive queue should be locked for queue delete from another connection");
@@ -120,7 +115,6 @@ public void testQueueExclusiveForBind() throws Exception {
120115
try {
121116
channel.queueBind(q, "", ""); // NB uses default exchange
122117
} catch (IOException ioe) {
123-
checkShutdownSignal(AMQP.INTERNAL_ERROR, ioe);
124118
return;
125119
}
126120
fail("Exclusive queue should be locked for queue bind from another connection");
@@ -138,7 +132,6 @@ public void testQueueExclusiveForUnbind() throws Exception {
138132
try {
139133
channel.queueUnbind(q, "", "");
140134
} catch (IOException ioe) {
141-
checkShutdownSignal(AMQP.INTERNAL_ERROR, ioe);
142135
return;
143136
}
144137
fail("Exclusive queue should be locked for queue unbind from another connection");
@@ -148,7 +141,6 @@ public void testQueueExclusiveForGet() throws Exception {
148141
try {
149142
channel.basicGet(q, true);
150143
} catch (IOException ioe) {
151-
checkShutdownSignal(AMQP.RESOURCE_LOCKED, ioe);
152144
return;
153145
}
154146
fail("Exclusive queue should be locked for basic get from another connection");

0 commit comments

Comments
 (0)