Test that in the case of multiple destination channels, one channel being blocked does not prevent the other channel receiving messages.
(t *testing.T)
| 45 | // Test that in the case of multiple destination channels, one channel |
| 46 | // being blocked does not prevent the other channel receiving messages. |
| 47 | func TestSequentialHandlerMultipleChannel(t *testing.T) { |
| 48 | t.Parallel() |
| 49 | |
| 50 | handler := NewSequentialSignalHandler() |
| 51 | |
| 52 | channelOne := make(chan *Signal) |
| 53 | handler.(SignalRegistrar).AddSignal(channelOne) |
| 54 | |
| 55 | channelTwo := make(chan *Signal, 10) |
| 56 | handler.(SignalRegistrar).AddSignal(channelTwo) |
| 57 | |
| 58 | writeSignals(handler, 1000) |
| 59 | |
| 60 | readSignals(t, channelTwo) |
| 61 | } |
| 62 | |
| 63 | // Test that removing one channel results in no more messages being |
| 64 | // written to that channel. |
nothing calls this directly
no test coverage detected
searching dependent graphs…