parent
1fbc056dd4
commit
bc0dc2e509
@ -115,8 +115,9 @@ func TestService(t *testing.T) {
|
|||||||
|
|
||||||
ch := make(chan os.Signal, 1)
|
ch := make(chan os.Signal, 1)
|
||||||
signal.Notify(ch, syscall.SIGTERM)
|
signal.Notify(ch, syscall.SIGTERM)
|
||||||
|
p, _ := os.FindProcess(os.Getpid())
|
||||||
|
p.Signal(syscall.SIGTERM)
|
||||||
|
|
||||||
syscall.Kill(syscall.Getpid(), syscall.SIGTERM)
|
|
||||||
<-ch
|
<-ch
|
||||||
|
|
||||||
select {
|
select {
|
||||||
|
Loading…
Reference in New Issue
Block a user