This field accessed by a test, annotate it as such and also make
sure we comply with synchronization rules.
Change-Id: I4d1280b140cae493ed7cb69a37cb950b0af82bfa
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
import static org.opendaylight.protocol.bgp.rib.spi.RIBNodeIdentifiers.PEER_NID;
+import com.google.common.annotations.VisibleForTesting;
import com.google.common.util.concurrent.FluentFuture;
import com.google.common.util.concurrent.FutureCallback;
import com.google.common.util.concurrent.MoreExecutors;
@GuardedBy("this")
private DOMTransactionChain domChain;
@GuardedBy("this")
+ @VisibleForTesting
TransactionChain bindingChain;
byte[] rawIdentifier;
@GuardedBy("this")
final Open open = createClassicOpen(true);
this.sessionv6.writeAndFlush(open);
checkIdleState(this.nonIpv4);
- assertNull(this.nonIpv4.bindingChain);
+ synchronized (this.nonIpv4) {
+ assertNull(this.nonIpv4.bindingChain);
+ }
}
/**