MCPcopy
hub / github.com/seaweedfs/seaweedfs / cleanup

Function cleanup

test/erasure_coding/admin_dockertest/ec_integration_test.go:33–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31)
32
33func cleanup() {
34 runningCmdsLock.Lock()
35 defer runningCmdsLock.Unlock()
36 for _, cmd := range runningCmds {
37 if cmd.Process != nil {
38 cmd.Process.Kill()
39 }
40 }
41}
42
43func startWeed(t *testing.T, name string, args ...string) *exec.Cmd {
44 cmd := exec.Command("./weed_bin", args...)

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected