Skip to content

Commit

Permalink
add yield
Browse files Browse the repository at this point in the history
  • Loading branch information
jraymakers committed Oct 6, 2024
1 parent a8b5c03 commit e95fb66
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bindings/test/pending.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ suite('pending', () => {
const pending = duckdb.pending_prepared(prepared);
try {
duckdb.interrupt(connection);
await sleep(0); // yield to allow progress

let pending_state = duckdb.pending_execute_check_state(pending);
while (!duckdb.pending_execution_is_finished(pending_state)) {
Expand Down

0 comments on commit e95fb66

Please sign in to comment.