Skip to content

Commit 4dab9da

Browse files
committed
Add consumption to auth expired on pull tests
1 parent a565ab9 commit 4dab9da

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/stub/authorization.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,8 @@ def test_should_fail_with_auth_expired_on_pull_using_session_run(
238238

239239
session = driver.session('r', database=self.get_db())
240240
try:
241-
session.run("RETURN 1 as n")
241+
result = session.run("RETURN 1 as n")
242+
result.consume()
242243
except types.DriverError as e:
243244
self.assert_is_authorization_error(error=e)
244245
session.close()

0 commit comments

Comments
 (0)