use of voldemort.client.protocol.admin.SocketAndStreams in project voldemort by voldemort.
the class SocketPoolTest method testClosingDeactivates.
@Test
public void testClosingDeactivates() throws Exception {
SocketAndStreams sas1 = pool.checkout(dest1);
sas1.getSocket().close();
pool.checkin(dest1, sas1);
SocketAndStreams sas2 = pool.checkout(dest1);
assertTrue(sas1 != sas2);
}
Aggregations