(ctx context.Context, step PlanStepSingleFault)
| 99 | } |
| 100 | |
| 101 | func (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 | |
| 112 | func (te *TestExecutor) runWaitForFaultCompletion(ctx context.Context, _ PlanStepWaitForFaultCompletion) error { |
| 113 |
no test coverage detected