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

Method Cleanup

e2e/harness.go:326–337  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

324 }()
325}
326func (h *Harness) Cleanup() {
327 h.mu.Lock()
328 defer h.mu.Unlock()
329 for name, c := range h.Nodes {
330 if err := c.Terminate(h.ctx); err != nil {
331 h.t.Logf("failed to terminate container %s: %v", name, err)
332 }
333 }
334 if err := h.Network.Remove(context.Background()); err != nil {
335 h.t.Logf("failed to remove network: %v", err)
336 }
337}
338func (h *Harness) Exec(nodeName string, cmd []string) (string, string, error) {
339 h.mu.Lock()
340 container, ok := h.Nodes[nodeName]

Callers 4

NewHarnessFunction · 0.95
TestPassiveRoamingFunction · 0.45
TestDistributionFunction · 0.45
startBundleRepoFunction · 0.45

Calls 1

RemoveMethod · 0.80

Tested by 3

TestPassiveRoamingFunction · 0.36
TestDistributionFunction · 0.36
startBundleRepoFunction · 0.36