Skip to content

Commit fb95c54

Browse files
author
Alexandru Scvortov
committed
used constant instead of hard-corded exception code
1 parent 7769e36 commit fb95c54

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333

3434
import java.io.IOException;
3535

36+
import com.rabbitmq.client.AMQP;
3637
import com.rabbitmq.client.ShutdownSignalException;
3738
import com.rabbitmq.client.test.BrokerTestCase;
3839

@@ -65,7 +66,7 @@ public void testExchangeDelete() {
6566
channel.exchangeDelete(EXCHANGE_NAME, true);
6667
fail("Exception expected if exchange in use");
6768
} catch (IOException e) {
68-
checkShutdownSignal(406, e);
69+
checkShutdownSignal(AMQP.PRECONDITION_FAILED, e);
6970
}
7071
}
7172
}

0 commit comments

Comments
 (0)