Remove stale field in processor struct

This commit is contained in:
Ken Hibino
2020-01-08 20:50:22 -08:00
parent 718336ff44
commit 390eb13149
3 changed files with 1 additions and 9 deletions

View File

@@ -66,7 +66,6 @@ func TestProcessorSuccess(t *testing.T) {
}
p := newProcessor(rdbClient, 10, defaultQueueConfig, defaultDelayFunc)
p.handler = HandlerFunc(handler)
p.dequeueTimeout = time.Second // short time out for test purpose
p.start()
for _, msg := range tc.incoming {
@@ -150,7 +149,6 @@ func TestProcessorRetry(t *testing.T) {
}
p := newProcessor(rdbClient, 10, defaultQueueConfig, delayFunc)
p.handler = HandlerFunc(handler)
p.dequeueTimeout = time.Second // short time out for test purpose
p.start()
for _, msg := range tc.incoming {