// start and send the data
DirectDriver cliconn = new DirectDriver(txtsrc, rpcSink);
cliconn.start();
// the avro version sometimes takes a while to start jetty
assertTrue("rpc client took too long to connect",
cliconn.waitForAtLeastState(DriverState.ACTIVE, 10000));
assertTrue("rpc client took too long to close cleanly",
cliconn.waitForAtLeastState(DriverState.IDLE, 2500));
Clock.sleep(2000); // data could be stuck in tcp buffer
svrconn.stop();