ChainSafe / ChainSafe/gossamer

end-to-end tests: make all `time.Sleep` context-aware

Open
#2,459 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
454
Forks
144
PR merge metrics
No merged PRs in 30d

Description

## Task summary

The end-to-end tests have been refactored to be context aware in order to cancel operations promptly when needed.

All `time.Sleep` usages should be changed to either:

- `context.WithTimeout(ctx, timeoutDuration)`
- timer + select case with context

so that sleeping operations get cancelled when the parent context gets canceled by an event.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.