8000 Clean resources before start, too · liborange/rabbitmq-java-client@cd13e7a · GitHub
[go: up one dir, main page]

Skip to content

Commit cd13e7a

Browse files
Clean resources before start, too
Also use distinctive names.
1 parent e7431c9 commit cd13e7a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424

2525
public class DurableOnTransient extends ClusteredTestBase
2626
{
27-
protected static final String Q = "DurableQueue";
28-
protected static final String X = "TransientExchange";
27+
protected static final String Q = "SemiDurableBindings.DurableQueue";
28+
protected static final String X = "SemiDurableBindings.TransientExchange";
2929

3030
private GetResponse basicGet()
3131
throws IOException
@@ -42,8 +42,11 @@ private void basicPublish()
4242
}
4343

4444
protected void createResources() throws IOException {
45-
// Transient exchange
45+
channel.exchangeDelete(X);
46+
// transient exchange
4647
channel.exchangeDeclare(X, "direct", false);
48+
49+
channel.queueDelete(Q);
4750
// durable queue
4851
channel.queueDeclare(Q, true, false, false, null);
4952
}

0 commit comments

Comments
 (0)
0