(t *testing.T)
| 52 | } |
| 53 | |
| 54 | func TestConsumer_Cancel_willNotBlock(t *testing.T) { |
| 55 | var ok bool |
| 56 | c := newTestConsumer() |
| 57 | |
| 58 | go func() { |
| 59 | c.Cancel() |
| 60 | c.Cancel() |
| 61 | c.Cancel() |
| 62 | ok = true |
| 63 | }() |
| 64 | |
| 65 | time.Sleep(1 * time.Microsecond) // let goroutine to work |
| 66 | if !ok { |
| 67 | t.Error("shold not block") |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | func TestConsumer_Deliveries(t *testing.T) { |
| 72 | c := newTestConsumer() |
nothing calls this directly
no test coverage detected