(ctx context.Context, duration time.Duration)
| 252 | ) |
| 253 | |
| 254 | func (vs *ValidationService) sleepWithContext(ctx context.Context, duration time.Duration) error { |
| 255 | select { |
| 256 | case <-ctx.Done(): |
| 257 | return ctx.Err() |
| 258 | default: |
| 259 | vs.clock.Sleep(duration) |
| 260 | return nil |
| 261 | } |
| 262 | } |
| 263 | |
| 264 | func (vs *ValidationService) writeValidationTrace( |
| 265 | _ context.Context, |
no test coverage detected