MCPcopy Create free account
hub / github.com/encodeous/nylon / ExecBackground

Method ExecBackground

e2e/harness.go:388–397  ·  view source on GitHub ↗
(nodeName string, cmd []string)

Source from the content-addressed store, hash-verified

386}
387
388func (h *Harness) ExecBackground(nodeName string, cmd []string) *BackgroundExec {
389 bg := &BackgroundExec{
390 done: make(chan struct{}),
391 }
392 go func() {
393 defer close(bg.done)
394 bg.Stdout, bg.Stderr, bg.Err = h.Exec(nodeName, cmd)
395 }()
396 return bg
397}
398
399// GetIP returns the IP address of the node in the test network
400func (h *Harness) GetIP(nodeName string) (string, error) {

Callers 2

TestHealthcheckPingFunction · 0.95
TestHealthcheckHTTPFunction · 0.95

Calls 1

ExecMethod · 0.95

Tested by 2

TestHealthcheckPingFunction · 0.76
TestHealthcheckHTTPFunction · 0.76