Skip to content

Commit 1d3840f

Browse files
Remove another test that arguably tests the protocol more
1 parent 01d2493 commit 1d3840f

File tree

1 file changed

+1
-26
lines changed

1 file changed

+1
-26
lines changed

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

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,6 @@ namespace RabbitMQ.Client.Unit {
5050
[TestFixture]
5151
public class TestQueueDeclare : IntegrationFixture {
5252

53-
[Test]
54-
public void TestDoubleQueueDeclareWithNonEquivalentArgs()
55-
{
56-
string q = GenerateQueueName();
57-
Model.QueueDeclare(q, false, false, false, null);
58-
VerifyNonEquivalent(Model, q, true, true, true, null);
59-
60-
WithTemporaryModel((m) => m.QueueDelete(q));
61-
}
62-
6353
[Test]
6454
public void TestConcurrentQueueDeclare()
6555
{
@@ -89,23 +79,8 @@ public void TestConcurrentQueueDeclare()
8979
}
9080

9181
Assert.IsNotNull(nse);
92-
9382
Model.QueueDelete(q);
9483
}
95-
96-
protected void VerifyNonEquivalent(IModel m, string name, bool durable, bool exclusive,
97-
bool autoDelete, IDictionary<string, object> args)
98-
{
99-
m.QueueDeclarePassive(name);
100-
try
101-
{
102-
m.QueueDeclare(name, durable, exclusive, autoDelete, args);
103-
Assert.Fail("Expected queue.declare to throw");
104-
}
105-
catch (OperationInterruptedException eoi)
106-
{
107-
AssertPreconditionFailed(eoi.ShutdownReason);
108-
}
109-
}
11084
}
11185
}
86+
p

0 commit comments

Comments
 (0)