(t *testing.T)
| 49 | } |
| 50 | |
| 51 | func TestQueue_IsStopped(t *testing.T) { |
| 52 | var q = New(zaptest.NewLogger(t).Sugar(), nil, nil, Options{ |
| 53 | Rate: 500 * time.Millisecond, |
| 54 | BatchSize: 1, |
| 55 | }) |
| 56 | if b := q.IsStopped(); b != q.stopped { |
| 57 | t.Errorf("IsStopped = '%v', got '%v'", b, q.stopped) |
| 58 | } |
| 59 | } |