Make ShardTest.testCommitWhenTransactionHasModifications() wait a bit 42/61742/2
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 14 Aug 2017 16:03:51 +0000 (18:03 +0200)
committerAnil Belur <abelur@linuxfoundation.org>
Tue, 15 Aug 2017 10:39:57 +0000 (10:39 +0000)
commit78cbe77372c5c97cdc5403f8e7773d09e9d333c4
tree9ba87ba78b7f3f5dbb5cfd3b769d390695e2aed8
parent916cf98305879c4a129985dc6a77af39c43d85b1
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>
(cherry picked from commit 3e86a2e5c83a86daba1afa8eeabc14c060c7f454)
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