summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-11-25 09:43:31 -0700
committerJens Axboe <axboe@kernel.dk>2019-11-25 09:43:31 -0700
commitf0d57a101ba39d0a0796622843fd08819ca5a6d0 (patch)
treecf965e64d65e177e77ed5cb75a9f8300dd8f6b9b
parent3f16174d1b0e7a2ec996fbf647911eafd5a18f66 (diff)
downloadliburing-f0d57a101ba39d0a0796622843fd08819ca5a6d0.tar.gz
liburing-f0d57a101ba39d0a0796622843fd08819ca5a6d0.tar.bz2
test/timeout: test_single_timeout_nr should wait for 3, not 4
We only submit 3 requests, so don't wait for 4 of them. Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--test/timeout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/timeout.c b/test/timeout.c
index 9671b63..fdf2223 100644
--- a/test/timeout.c
+++ b/test/timeout.c
@@ -132,7 +132,7 @@ static int test_single_timeout_nr(struct io_uring *ring)
io_uring_prep_nop(sqe);
io_uring_sqe_set_data(sqe, (void *) 1);
- ret = io_uring_submit_and_wait(ring, 4);
+ ret = io_uring_submit_and_wait(ring, 3);
if (ret <= 0) {
fprintf(stderr, "%s: sqe submit failed: %d\n", __FUNCTION__, ret);
goto err;