summaryrefslogtreecommitdiff
path: root/requests/requests_workerchange_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'requests/requests_workerchange_test.go')
-rw-r--r--requests/requests_workerchange_test.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/requests/requests_workerchange_test.go b/requests/requests_workerchange_test.go
index 01b5024..06b438c 100644
--- a/requests/requests_workerchange_test.go
+++ b/requests/requests_workerchange_test.go
@@ -93,11 +93,9 @@ var _ = Describe("Requests as WorkerChange", func() {
})
})
Describe("OnWorkerFail", func() {
- It("should panic if jobs.Get fails", func() {
+ It("should return if jobs.Get fails", func() {
jm.EXPECT().Get(testWorker).Return(nil, testErr)
- Expect(func() {
- R.OnWorkerFail(testWorker)
- }).To(Panic())
+ R.OnWorkerFail(testWorker)
})
It("should panic if failing worker was processing unknown Job", func() {
noReq := boruta.ReqID(0)