Skip to content

Commit 47b7508

Browse files
committed
Do not hard fail in AuthExpired and skip tests
1 parent bd22a20 commit 47b7508

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
@@ -698,7 +699,7 @@ function _isFailFastError (error) {
698699
function _isFailFastSecurityError (error) {
699700
return error.code.startsWith('Neo.ClientError.Security.') &&
700701
![
701-
702+
AUTHORIZATION_EXPIRED_CODE,
702703
].includes(error.code)
703704
}
704705

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,13 @@ const skippedTests = [
108108
'test_should_use_resolver_during_rediscovery_when_existing_routers_fail'
109109
)
110110
),
111+
skip(
112+
'Needs to implement "domain_name_resolver_fn"',
113+
ifEndsWith(
114+
'test_should_request_rt_from_all_initial_routers_until_successful_on_unknown_failure',
115+
'_test_should_request_rt_from_all_initial_routers_until_successful'
116+
)
117+
),
111118
skip(
112119
'Needs investigation. It is only failing in the RoutingV3 case',
113120
ifEndsWith(

0 commit comments

Comments
 (0)