Skip to content

Commit 1870a4b

Browse files
author
Emile Joubert
committed
Use exclusive access, avoiding need for queue delete after test
1 parent 702db25 commit 1870a4b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

projects/client/Unit/src/unit/TestRecoverAfterCancel.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,11 @@ [SetUp] public void Connect()
8484
{
8585
Connection = new ConnectionFactory().CreateConnection();
8686
Channel = Connection.CreateModel();
87-
Queue = Channel.QueueDeclare("");
87+
Queue = Channel.QueueDeclare("", false, false, true, false, false, null);
8888
}
8989

9090
[TearDown] public void Disconnect()
9191
{
92-
Channel.QueueDelete(Queue, false, false, false);
9392
Connection.Abort();
9493
}
9594

0 commit comments

Comments
 (0)