Something went wrong. Try again.
forked from tailscale/tailscale
Something went wrong. Try again.
1234567891011121314151617181920212223// Copyright (c) Tailscale Inc & contributors// SPDX-License-Identifier: BSD-3-Clause
package spawnwait
import ( "sync" "testing")
var counter intvar wg sync.WaitGroup
func TestSpawn(t *testing.T) { wg.Add(2) go func() { defer wg.Done(); counter++ }() go func() { defer wg.Done(); counter++ }()}
func TestWait(t *testing.T) { wg.Wait()}