Skip to content

Commit ac55105

Browse files
committed
use new BrokerTestCase.expectChannelError()
1 parent 2aaeff1 commit ac55105

File tree

1 file changed

+1
-6
lines changed
  • test/src/com/rabbitmq/client/test/functional

1 file changed

+1
-6
lines changed

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,6 @@ public void testReject()
109109
assertNull(channel.basicGet(q, false));
110110
channel.basicAck(tag1, false);
111111
channel.basicReject(tag3, false);
112-
try {
113-
channel.basicQos(0); //some synchronous command
114-
fail();
115-
} catch (IOException ioe) {
116-
checkShutdownSignal(AMQP.PRECONDITION_FAILED, ioe);
117-
}
112+
expectChannelError(AMQP.PRECONDITION_FAILED);
118113
}
119114
}

0 commit comments

Comments
 (0)