tests: don't sleep too much for rsrc tags
check_cq_empty() sleeps for a second, and it's called many times
throughout the test. It's too much, reduced it to 1ms. Even if there is
a false negative, we don't care and next check_cq_empty() will fail.
Link:
@@ -27,7 +27,7 @@ static bool check_cq_empty(struct io_uring *ring)
struct io_uring_cqe *cqe = NULL;
int ret;
- sleep(1); /* doesn't happen immediately, so wait */
+ usleep(1000); /* doesn't happen immediately, so wait */
ret = io_uring_peek_cqe(ring, &cqe); /* nothing should be there */
return ret == -EAGAIN;
}
