Skip to content

test: add regression for reentrant fetchMore on resultsInserted#13

Open
brenns10 wants to merge 1 commit intoalbertlauncher:mainfrom
brenns10:test_stalled_generator
Open

test: add regression for reentrant fetchMore on resultsInserted#13
brenns10 wants to merge 1 commit intoalbertlauncher:mainfrom
brenns10:test_stalled_generator

Conversation

@brenns10
Copy link

This PR adds a test which verifies that multi-chunk handlers get all of their results consumed. It verifies the fix in albertlauncher/albert#1618. Without that fix, the test stalls and then fails. With it, the test passes.

Add a query execution test that connects QueryResults::resultsInserted to
exec->fetchMore(), mirroring frontend model behavior.

Assert that a GeneratorQueryHandler delivering multiple chunks reaches the
final count and canFetchMore()==false.

This test fails without the GeneratorQueryHandler fix in albert core.
Refs: albertlauncher#12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant