Bug 6186 - fix testCandidateSerialization() 91/41691/5
authorIsaku Yamahata <isaku.yamahata@intel.com>
Tue, 12 Jul 2016 04:15:53 +0000 (21:15 -0700)
committerTom Pantelis <tpanteli@brocade.com>
Fri, 15 Jul 2016 15:46:04 +0000 (15:46 +0000)
commit59333ffc77187ebcf3c53be53db580dd2e6995b6
tree4a7b5c613fb8e434fe1da318b6212075f8d9c2d9
parentf2e01000c60e2631dbf1e167de58cc8cbde82947
Bug 6186 - fix testCandidateSerialization()

The changeset of 97ff7dff8e58531065833736d5788808ca9e0396 make
LocalHistoryIdentifier#write() use WritableObjects#writeLongs()
instead of WritableObjects#writeLong(). In some situations, the
header length of object may be shorter.
As a result CommitTransactionPayloadTest#testCandidateSerialization()
failes. This patch fixes it by setting transaction id,
history transaction id to known value when setting up test.

Change-Id: I7fbd912564a25c92bc29f7e10bdae8ce1be52b8f
Signed-off-by: Isaku Yamahata <isaku.yamahata@intel.com>
opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/AbstractTest.java
opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/persisted/CommitTransactionPayloadTest.java