8000 Clean up exchanges, too, since the tests declare them · yezijiang/rabbitmq-java-client@f6f3c23 · GitHub
[go: up one dir, main page]

Skip to content

Commit f6f3c23

Browse files
Clean up exchanges, too, since the tests declare them
1 parent 88acf07 commit f6f3c23

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,10 @@ public void handleReturn(int replyCode,
7878
}
7979

8080
@Override protected void releaseResources() throws IOException {
81-
for (String q : resources) {
82-
channel.queueDelete(q);
81+
for (String r : resources) {
82+
channel.queueDelete(r);
83+
// declared by setupRouting
84+
channel.exchangeDelete(r);
8385
}
8486
}
8587

0 commit comments

Comments
 (0)
0