hyperledger / fabric-gateway

Go, Node and Java client API for Hyperledger Fabric v2.4+
https://hyperledger.github.io/fabric-gateway/
Apache License 2.0
145 stars 87 forks source link

Synchronization for Java eventing unit tests #697

Closed bestbeforetoday closed 3 months ago

bestbeforetoday commented 3 months ago

Eventing request messages are sometimes not captured correctly. The suspicion is that this is caused by the multi-threaded nature of the eventing flow. Explicit synchronization to the unit test stubs at the point of service invocation and when capturing invocation arguments, in an attempt to ensure consistency.

Resolves #696