account-lookup-service 17.14.0 → 17.14.1-snapshot.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -251,7 +251,7 @@ class GetPartiesService extends BasePartiesService {
251
251
  const sentResult = await this.deps.participant.sendRequest(
252
252
  headers, sendTo, callbackEndpointType, RestMethods.GET, undefined, options, this.deps.childSpan
253
253
  )
254
- await this.#setProxyGetPartiesTimeout(sendTo)
254
+ // await this.#setProxyGetPartiesTimeout(sendTo)
255
255
  this.log.debug('#forwardGetPartiesRequest is done:', { sendTo, sentResult })
256
256
  return sentResult
257
257
  }
@@ -51,7 +51,7 @@ const timeout = async (options) => {
51
51
  isAcquired = await distLock?.acquireLock()
52
52
  if (!isAcquired) return
53
53
  await TimeoutService.timeoutInterschemePartiesLookups(options)
54
- await TimeoutService.timeoutProxyGetPartiesLookups(options)
54
+ // await TimeoutService.timeoutProxyGetPartiesLookups(options)
55
55
  logger.verbose('ALS timeout handler is done')
56
56
  } catch (err) {
57
57
  logger.error('error in timeout: ', err)
@@ -99,7 +99,7 @@ describe('Timeout Handler', () => {
99
99
  expect(entry1.headers['content-type']).toContain('parties')
100
100
  })
101
101
 
102
- it('should pass timeoutProxyGetPartiesLookups flow', async () => {
102
+ it.skip('should pass timeoutProxyGetPartiesLookups flow', async () => {
103
103
  const partyId1 = `pgp1-${Date.now()}`
104
104
  const partyId2 = `pgp2-${Date.now()}`
105
105
  const alsReq1 = fixtures.mockAlsRequestDto(PAYER_DFSP, PARTY_ID_TYPE, partyId1)
@@ -269,8 +269,8 @@ describe('GetPartiesService Tests -->', () => {
269
269
  const service = new GetPartiesService(deps, { headers, params })
270
270
 
271
271
  await service.handleRequest()
272
- expect(proxyCache.setProxyGetPartiesTimeout).toHaveBeenCalledTimes(1)
273
- expect(proxyCache.setProxyGetPartiesTimeout.mock.lastCall[1]).toBe(proxyId)
272
+ // expect(proxyCache.setProxyGetPartiesTimeout).toHaveBeenCalledTimes(1)
273
+ // expect(proxyCache.setProxyGetPartiesTimeout.mock.lastCall[1]).toBe(proxyId)
274
274
  expect(participantMock.sendRequest).toHaveBeenCalledTimes(1)
275
275
  })
276
276
 
@@ -320,7 +320,7 @@ describe('GetPartiesService Tests -->', () => {
320
320
  const service = new GetPartiesService(deps, { headers, params })
321
321
 
322
322
  await service.handleRequest()
323
- expect(proxyCache.setProxyGetPartiesTimeout).toHaveBeenCalledTimes(1)
323
+ // expect(proxyCache.setProxyGetPartiesTimeout).toHaveBeenCalledTimes(1)
324
324
  expect(participantMock.sendRequest).toHaveBeenCalledTimes(1)
325
325
  })
326
326
  })
@@ -111,7 +111,7 @@ describe('TimeoutHandler', () => {
111
111
  await TimeoutHandler.timeout(mockOptions)
112
112
  expect(mockDistLock.acquire).toHaveBeenCalledTimes(1)
113
113
  expect(mockDistLock.release).toHaveBeenCalledTimes(1)
114
- expect(TimeoutService.timeoutProxyGetPartiesLookups).toHaveBeenCalled()
114
+ // expect(TimeoutService.timeoutProxyGetPartiesLookups).toHaveBeenCalled()
115
115
  })
116
116
 
117
117
  it('should not run if distributed lock cannot be acquired', async () => {