summaryrefslogtreecommitdiff
path: root/tests/lib/test_heavy_wq.c
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2023-11-04 13:58:55 +0200
committerGitHub <noreply@github.com>2023-11-04 13:58:55 +0200
commit4bdba57861d1325b42b5b81c118bf76b51f172e5 (patch)
tree97e9ebbdb2ea7e809915b173a15bbeb7a2625e6b /tests/lib/test_heavy_wq.c
parentd4c596d77f34ac613a8c2be54a819f08df01feeb (diff)
parent2a65f05d77f88f96d4385040d01492e805e1cc44 (diff)
Merge pull request #14724 from donaldsharp/workqueue_cleanup
Workqueue cleanup
Diffstat (limited to 'tests/lib/test_heavy_wq.c')
-rw-r--r--tests/lib/test_heavy_wq.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/tests/lib/test_heavy_wq.c b/tests/lib/test_heavy_wq.c
index 225573ae92..8c2765cfdf 100644
--- a/tests/lib/test_heavy_wq.c
+++ b/tests/lib/test_heavy_wq.c
@@ -76,12 +76,6 @@ static wq_item_status slow_func(struct work_queue *wq, void *data)
for (j = 0; j < 300; j++)
x += sin(x) * j;
- if ((hn->i % ITERS_LATER) == 0)
- return WQ_RETRY_LATER;
-
- if ((hn->i % ITERS_ERR) == 0)
- return WQ_RETRY_NOW;
-
if ((hn->i % ITERS_PRINT) == 0)
printf("%s did %d, x = %g\n", hn->str, hn->i, x);