(t testing.TB, c io.Closer)
| 9 | ) |
| 10 | |
| 11 | func safeClose(t testing.TB, c io.Closer) { |
| 12 | t.Helper() |
| 13 | err := c.Close() |
| 14 | if err != nil { |
| 15 | t.Error(err) |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | func closeProducerWithTimeout(t *testing.T, p AsyncProducer, timeout time.Duration) { |
| 20 | var wg sync.WaitGroup |
no test coverage detected