Skip to content

Commit 84694bf

Browse files
author
Michael Bridgen
committed
Merge bug20078 (test that commits don't fail when queues go missing)
2 parents cfb7f76 + 5438021 commit 84694bf

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

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

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,4 +351,24 @@ public void testRedeliverAckedUncommitted()
351351
closeChannel();
352352
}
353353

354+
public void testCommitWithDeletedQueue()
355+
throws IOException
356+
{
357+
openChannel();
358+
txSelect();
359+
basicPublish();
360+
releaseResources();
361+
try {
362+
txCommit();
363+
} catch (IOException e) {
364+
closeConnection();
365+
openConnection();
366+
openChannel();
367+
fail("commit failed");
368+
} finally {
369+
createResources();
370+
closeChannel();
371+
}
372+
}
373+
354374
}

0 commit comments

Comments
 (0)