(t *testing.T, client *Client[TTx])
| 235 | } |
| 236 | |
| 237 | func subscribe[TTx any](t *testing.T, client *Client[TTx]) <-chan *Event { |
| 238 | t.Helper() |
| 239 | |
| 240 | subscribeChan, cancel := client.Subscribe( |
| 241 | EventKindJobCancelled, |
| 242 | EventKindJobCompleted, |
| 243 | EventKindJobFailed, |
| 244 | EventKindJobSnoozed, |
| 245 | EventKindQueuePaused, |
| 246 | EventKindQueueResumed, |
| 247 | ) |
| 248 | t.Cleanup(cancel) |
| 249 | return subscribeChan |
| 250 | } |
| 251 | |
| 252 | func Test_Client_Common(t *testing.T) { |
| 253 | t.Parallel() |
no test coverage detected
searching dependent graphs…