MCPcopy Create free account
hub / github.com/baidu/EasyFaaS / TestSetupSignalHandler

Function TestSetupSignalHandler

cmd/funclet/funclet_test.go:10–17  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

8)
9
10func TestSetupSignalHandler(t *testing.T) {
11 _, finishCh := SetupSignalHandler()
12 pid := os.Getpid()
13 syscall.Kill(pid, syscall.SIGTERM)
14 syscall.Kill(pid, syscall.SIGCHLD)
15 time.Sleep(time.Second)
16 close(finishCh)
17}

Callers

nothing calls this directly

Calls 3

SetupSignalHandlerFunction · 0.70
KillMethod · 0.65
SleepMethod · 0.65

Tested by

no test coverage detected