Fixed a UT in Hare VRF
No need to run automation tests as the change is only to a UT.
@@ -140,11 +140,11 @@ func TestOracle_buildVRFMessageConcurrency(t *testing.T) {
wg := sync.WaitGroup{}
for i := 0; i < total; i++ {
wg.Add(1)
- go func() {
- _, err := o.buildVRFMessage(1, int32(i%10))
+ go func(x int) {
+ _, err := o.buildVRFMessage(1, int32(x%10))
r.NoError(err)
wg.Done()
- }()
+ }(i)
}
wg.Wait()
