java-driver
java-driver copied to clipboard
Fix ChannelPoolInitTest NullPointerException
It seems that there was a race condition where we try to inspect ChannelSet while it is still null and initialized property is still false. This small reordering ensures that initialize() method of ChannelPool has been already called, because channelOpened event already fired.