Skip to content

Commit 23375a7

Browse files
committed
Do not hard fail in AuthExpired and skip tests
1 parent 06bda48 commit 23375a7

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

packages/bolt-connection/src/connection-provider/connection-provider-routing.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ const INVALID_BOOKMARK_CODE = 'Neo.ClientError.Transaction.InvalidBookmark'
4848
const INVALID_BOOKMARK_MIXTURE_CODE =
4949
'Neo.ClientError.Transaction.InvalidBookmarkMixture'
5050
const FORBIDEN_CODE = 'Neo.ClientError.Security.Forbidden'
51-
const UNAUTHORIZED_ERROR_CODE = 'Neo.ClientError.Security.Unauthorized'
51+
const AUTHORIZATION_EXPIRED_CODE =
52+
'Neo.ClientError.Security.AuthorizationExpired'
5253

5354
const SYSTEM_DB_NAME = 'system'
5455
const DEFAULT_DB_NAME = null
@@ -669,7 +670,7 @@ function _isFailFastError (error) {
669670
function _isFailFastSecurityError (error) {
670671
return error.code.startsWith('Neo.ClientError.Security.') &&
671672
![
672-
673+
AUTHORIZATION_EXPIRED_CODE,
673674
].includes(error.code)
674675
}
675676

packages/testkit-backend/src/skipped-tests.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,13 @@ const skippedTests = [
7777
'test_should_use_resolver_during_rediscovery_when_existing_routers_fail'
7878
)
7979
),
80+
skip(
81+
'Needs to implement "domain_name_resolver_fn"',
82+
ifEndsWith(
83+
'test_should_request_rt_from_all_initial_routers_until_successful_on_unknown_failure',
84+
'_test_should_request_rt_from_all_initial_routers_until_successful'
85+
)
86+
),
8087
skip(
8188
'Needs investigation. It is only failing in the RoutingV3 case',
8289
ifEndsWith(

0 commit comments

Comments
 (0)