multiversx / mx-sdk-go

MultiversX GO SDK for interacting with the MultiversX blockchain (in general) and Smart Contracts (in particular).
GNU General Public License v3.0
18 stars 12 forks source link

Fix flaky tests in nonceHandlerV3. #187

Closed cristure closed 3 weeks ago

cristure commented 3 weeks ago

There was a design flaw by using the errgoup.WithContext. Calling the .Wait() method when having a context will cancel all the other goroutines that are part of the group. This behaviour had unforeseen events, that are treated in the transactionWorker, but since they were cancelled by the higher context could not be treated and cancelled.