forked from quic-go/quic-go
* use synctest to make streams map tests fully deterministic * ignore synctest helper package for code coverage
19 lines
209 B
Go
19 lines
209 B
Go
//go:build go1.24 && !go1.25
|
|
|
|
package synctest
|
|
|
|
import (
|
|
"testing"
|
|
"testing/synctest"
|
|
)
|
|
|
|
func Test(t *testing.T, f func(t *testing.T)) {
|
|
synctest.Run(func() {
|
|
f(t)
|
|
})
|
|
}
|
|
|
|
func Wait() {
|
|
synctest.Wait()
|
|
}
|