Thread.sleep(2000); // TODO How to improve this.
// Perform N queries, one to each DNode and validate the resultant data
for(int i = 0; i < N_DNODES; i++) {
client = getRandomQNodeClient(random, config);
QueryStatus qStatus = client.query("p1", ((i * 10) + 1) + "", "SELECT * FROM foo;", null);
assertEquals((Integer) i, qStatus.getShard());
assertEquals(10, qStatus.getResult().size());
for(Object obj : qStatus.getResult()) {
Map<String, Object> map = (Map<String, Object>) obj;
assertEquals(randomStr, map.get("strCol"));