mirror of
https://gitlab.com/NebulousLabs/go-upnp.git
synced 2025-10-05 15:06:49 +08:00
satisfy go-staticcheck
This commit is contained in:
@@ -20,12 +20,12 @@ func TestConcurrentUPNP(t *testing.T) {
|
|||||||
// now try to concurrently Discover() using 20 threads
|
// now try to concurrently Discover() using 20 threads
|
||||||
var wg sync.WaitGroup
|
var wg sync.WaitGroup
|
||||||
for i := 0; i < 20; i++ {
|
for i := 0; i < 20; i++ {
|
||||||
|
wg.Add(1)
|
||||||
go func() {
|
go func() {
|
||||||
wg.Add(1)
|
|
||||||
defer wg.Done()
|
defer wg.Done()
|
||||||
_, err := Discover()
|
_, err := Discover()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Error(err)
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user