Skip to content

Commit 81bce6f

Browse files
authored
Fix token expiration exception verification for JS (#267)
Javascript only checks for the error code and the message.
1 parent dbbd5ea commit 81bce6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/stub/authorization/test_authorization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def assert_is_token_error(self, error):
4343
self.assertEqual(
4444
"<class 'neo4j.exceptions.TokenExpired'>", error.errorType
4545
)
46-
elif driver == 'go':
46+
elif driver in ['go', 'javascript']:
4747
self.assertEqual('Neo.ClientError.Security.TokenExpired',
4848
error.code)
4949
self.assertIn(

0 commit comments

Comments
 (0)