Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 11, 21:00 UTC
Use WaitGroup.Go to simplify code (#7253)
Signed-off-by: mickychang9 <mickychang9@outlook.com>
mickychang9 committed
Sep 12, 2025 at 00:15 UTC
bcd4055e893cd0563627fa4c422f27f974d9bd8f
1 file changed
+2
-4
admin_test.go
+2
-4
@@ -149,11 +149,9 @@ func TestLoadConcurrent(t *testing.T) {
149
var wg sync.WaitGroup
150
151
for i := 0; i < 100; i++ {
152
- wg.Add(1)
153
- go func() {
152
+ wg.Go(func() {
153
_ = Load(testCfg, true)
155
- wg.Done()
156
- }()
154
+ })
155
}
156
wg.Wait()
157
}