(t *testing.T)
| 226 | } |
| 227 | |
| 228 | func Test_Observable_BackOffRetry_Error(t *testing.T) { |
| 229 | defer goleak.VerifyNone(t) |
| 230 | ctx, cancel := context.WithCancel(context.Background()) |
| 231 | defer cancel() |
| 232 | backOffCfg := backoff.NewExponentialBackOff() |
| 233 | backOffCfg.InitialInterval = time.Nanosecond |
| 234 | obs := Defer([]Producer{func(ctx context.Context, next chan<- Item) { |
| 235 | next <- Of(1) |
| 236 | next <- Of(2) |
| 237 | next <- Error(errFoo) |
| 238 | }}).BackOffRetry(backoff.WithMaxRetries(backOffCfg, 3)) |
| 239 | Assert(ctx, t, obs, HasItems(1, 2, 1, 2, 1, 2, 1, 2), HasError(errFoo)) |
| 240 | } |
| 241 | |
| 242 | func Test_Observable_BufferWithCount(t *testing.T) { |
| 243 | defer goleak.VerifyNone(t) |
nothing calls this directly
no test coverage detected
searching dependent graphs…