MCPcopy Create free account
hub / github.com/crytic/attacknet / runInjectFaultStep

Method runInjectFaultStep

pkg/test_executor/executor.go:101–110  ·  view source on GitHub ↗
(ctx context.Context, step PlanStepSingleFault)

Source from the content-addressed store, hash-verified

99}
100
101func (te *TestExecutor) runInjectFaultStep(ctx context.Context, step PlanStepSingleFault) error {
102 faultSession, err := te.chaosClient.StartFault(ctx, step.FaultSpec)
103 if err != nil {
104 return err
105 }
106 te.faultSessions = append(te.faultSessions, faultSession)
107
108 err = waitForInjectionCompleted(ctx, faultSession)
109 return err
110}
111
112func (te *TestExecutor) runWaitForFaultCompletion(ctx context.Context, _ PlanStepWaitForFaultCompletion) error {
113

Callers 1

RunTestPlanMethod · 0.95

Calls 2

StartFaultMethod · 0.80

Tested by

no test coverage detected