chore: upgrade go 1.25 (#22904)

This commit is contained in:
andig 2025-08-14 16:21:54 +02:00 • committed by GitHub
parent 536e01459a
commit 6f03177a54
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 26 additions and 45 deletions

View file

@ -30,10 +30,8 @@ func TestConcurrentRead(t *testing.T) {
var wg sync.WaitGroup
for i := 1; i <= 10; i++ {
wg.Add(1)
go func(id int) {
for id := 1; id <= 10; id++ {
wg.Go(func() {
// client
conn, err := modbus.NewConnection(context.TODO(), l.Addr().String(), "", "", 0, modbus.Tcp, uint8(id))
require.NoError(t, err)
@ -53,9 +51,7 @@ func TestConcurrentRead(t *testing.T) {
time.Sleep(time.Duration(rand.Int31n(1000)) * time.Microsecond)
}
wg.Done()
}(i)
})
}
wg.Wait()