File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
test/src/com/rabbitmq/client/test/functional Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -101,11 +101,11 @@ public void testReject()
101
101
long tag1 = checkDelivery (channel .basicGet (q , false ), m1 , false );
102
102
long tag2 = checkDelivery (channel .basicGet (q , false ), m2 , false );
103
103
QueueingConsumer c = new QueueingConsumer (secondaryChannel );
104
- String consumerTag = channel .basicConsume (q , false , c );
104
+ String consumerTag = secondaryChannel .basicConsume (q , false , c );
105
105
channel .basicReject (tag2 , true );
106
106
long tag3 = checkDelivery (c .nextDelivery (), m2 , true );
107
- channel .basicCancel (consumerTag );
108
- channel .basicReject (tag3 , false );
107
+ secondaryChannel .basicCancel (consumerTag );
108
+ secondaryChannel .basicReject (tag3 , false );
109
109
assertNull (channel .basicGet (q , false ));
110
110
channel .basicAck (tag1 , false );
111
111
channel .basicReject (tag3 , false );
You can’t perform that action at this time.
0 commit comments