Timeouts And Async

Make Ginkgo specs interruptible and test asynchronous behavior — SpecContext/context.Context cancellable nodes, NodeTimeout/SpecTimeout/GracePeriod, the --timeout flag, Abort and SIGINT behavior, Gomega Eventually/Consistently (the func(g Gomega) form, .WithContext), and the defer GinkgoRecover() rule for goroutines. Use when a spec hangs or times out, polls for eventual consistency, tests channels/streams/processes, launches goroutines, or needs a deadline.

onsi 664aaa4 6.9 KB Updated

File contents

onsi/ginkgo/tree/main/plugins/ginkgo/skills/timeouts-and-async commit 664aaa4828

Frequently asked questions

npx skillmds@latest add onsi/timeouts-and-async