1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-09-16 08:36:30 +02:00

fix :no syscall.Kill on windows #1474 (#1474)

This commit is contained in:
Edward
2020-04-08 17:50:44 +08:00
committed by GitHub
parent 1fbc056dd4
commit bc0dc2e509

View File

@@ -115,8 +115,9 @@ func TestService(t *testing.T) {
ch := make(chan os.Signal, 1)
signal.Notify(ch, syscall.SIGTERM)
p, _ := os.FindProcess(os.Getpid())
p.Signal(syscall.SIGTERM)
syscall.Kill(syscall.Getpid(), syscall.SIGTERM)
<-ch
select {