Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion tests/stub/routing/test_no_routing_v4x1.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,16 @@ def test_should_pull_custom_size_and_then_all_using_session_configuration(
user_agent="007")

session = driver.session("w", database=self.adb, fetch_size=2)
res = session.run("RETURN 5 as n")
if self.driver_supports_features(
types.Feature.OPT_RESULT_LIST_FETCH_ALL
):
# This script branch expects res.list to fetch all outstanding
# records in one go.
res = session.run("RETURN 5 as n")
else:
# This script branch expects res.list to fetch all outstanding
# records while respecting the configure fetch size.
res = session.run("RETURN 1 as n")
records = res.list()

session.close()
Expand Down