Make ShardTest.testCommitWhenTransactionHasModifications() wait a bit 03/61703/3
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 14 Aug 2017 16:03:51 +0000 (18:03 +0200)
committerTom Pantelis <tompantelis@gmail.com>
Wed, 16 Aug 2017 18:01:13 +0000 (18:01 +0000)
commit1fcad0bba05ddb4474a1dd5bd59413ff38f2840f
tree70d2eeca58cb19308e0b283e5284d6b6af0b8630
parent4864502c79ef5d73a0236c3bce5c06d74dcb378c
Make ShardTest.testCommitWhenTransactionHasModifications() wait a bit

Committed transactions involve also a purge payload, which is persisted
asynchronously, hence it may or may not be visible in the journal just
after the transaction is reported as committed. Wait for two heartbeat
intervals before looking at the stats.

Change-Id: Ibe699edced12d006bf5ea8cd99aa821ab56d115d
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/AbstractShardTest.java
opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/ShardTest.java