riverqueue / river

Fast and reliable background jobs in Go
https://riverqueue.com
Mozilla Public License 2.0
3.51k stars 94 forks source link

Move `TestSignal` into `rivershared` for use outside of main project #519

Closed brandur closed 2 months ago

brandur commented 2 months ago

The TestSignal paradigm might not be perfect, but as I was writing a test yesterday that had to involve a bespoke test channel involving many lines of unsightly and somewhat brittle test-only code, I was reminded that it's better than the alternative.

Here, move TestSignal into rivershared so that it can be used outside of the main River project.