Skip to content

Commit

Permalink
fix :no syscall.Kill on windows micro#1474 (micro#1474)
Browse files Browse the repository at this point in the history
  • Loading branch information
crazybber committed Apr 8, 2020
1 parent 1fbc056 commit bc0dc2e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit bc0dc2e

Please sign in to comment.