mirror of
https://github.com/foomo/gotsrpc.git
synced 2026-10-05 06:56:59 +00:00
style: wsl_v5
This commit is contained in:
@@ -27,6 +27,7 @@ func main() {
|
||||
|
||||
go func() {
|
||||
time.Sleep(time.Second)
|
||||
|
||||
_ = exec.CommandContext(ctx, "open", "http://127.0.0.1:3000").Run()
|
||||
}()
|
||||
|
||||
|
||||
@@ -12,6 +12,7 @@ import (
|
||||
|
||||
func TestContextCanceled(t *testing.T) {
|
||||
ctx, cancel := context.WithCancel(t.Context())
|
||||
|
||||
go func() {
|
||||
time.Sleep(time.Second)
|
||||
cancel()
|
||||
|
||||
Reference in New Issue
Block a user