eventually(new Condition() {
@Override
public boolean isSatisfied() throws Exception {
boolean allZero = true;
for (int i = 0; i < 3; i++) {
TransactionTable tt = TestingUtil.getTransactionTable(cache(i));
// assertEquals("For cache " + i, 0, tt.getLocalTxCount());
// assertEquals("For cache " + i, 0, tt.getRemoteTxCount());
int local = tt.getLocalTxCount();
int remote = tt.getRemoteTxCount();
log.tracef("For cache %i , localTxCount=%s, remoteTxCount=%s", i, local, remote);
log.tracef(String.format("For cache %s , localTxCount=%s, remoteTxCount=%s", i, local, remote));
allZero = allZero && (local == 0);
allZero = allZero && (remote == 0);
}