We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45d277d commit f21d03dCopy full SHA for f21d03d
r/adbcdrivermanager/tests/testthat/test-async.R
@@ -17,10 +17,13 @@
17
18
test_that("aync array_stream$get_next", {
19
stream <- nanoarrow::basic_array_stream(list(1:5))
20
+ async_called <- FALSE
21
queue <- adbc_array_stream_get_next_async(stream, function(array) {
22
+ async_called <<- TRUE
23
expect_identical(nanoarrow::convert_array(array), 1:5)
24
})
25
- Sys.sleep(0.5)
26
+ expect_false(async_called)
27
expect_identical(adbc_callback_queue_run_pending(queue), 1)
28
+ expect_true(async_called)
29
0 commit comments