Skip to content

Commit 8cbd636

Browse files
committed
re-instate tx/confirm mutual exclusion test
(but retain the less awkward formulation of the select idempotence test)
1 parent ac08a0b commit 8cbd636

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,22 @@ public void testSelect()
188188
throws IOException
189189
{
190190
channel.confirmSelect();
191+
try {
192+
Channel ch = connection.createChannel();
193+
ch.confirmSelect();
194+
ch.txSelect();
195+
fail();
196+
} catch (IOException ioe) {
197+
checkShutdownSignal(AMQP.PRECONDITION_FAILED, ioe);
198+
}
199+
try {
200+
Channel ch = connection.createChannel();
201+
ch.txSelect();
202+
ch.confirmSelect();
203+
fail();
204+
} catch (IOException ioe) {
205+
checkShutdownSignal(AMQP.PRECONDITION_FAILED, ioe);
206+
}
191207
}
192208

193209
public void testTx()

0 commit comments

Comments
 (0)