micro/sync/waitgroup_test.go
Vasiliy Tolstov d112f7148e sync/waitgroup: initial implementation
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2024-03-09 20:00:12 +03:00

17 lines
237 B
Go

package sync
import (
"context"
"testing"
"time"
)
func TestWaitGroup(t *testing.T) {
wg := NewWaitGroup()
_ = t
wg.Add(1)
ctx, cancel := context.WithTimeout(context.TODO(), 1*time.Second)
defer cancel()
wg.WaitContext(ctx)
}