Closed angiejones closed 4 months ago
The expiry date is hard coded here causing the test to fail with:
ResponseError at TbdexHttpClient.sendMessage (file:///Users/nicolaas/repos/tbd/tbdex-pfi-exemplar/node_modules/@tbdex/http-client/dist/esm/src/client.js:75:19) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async TbdexHttpClient.submitOrder (file:///Users/nicolaas/repos/tbd/tbdex-pfi-exemplar/node_modules/@tbdex/http-client/dist/esm/src/client.js:44:9) at <anonymous> (/Users/nicolaas/repos/tbd/tbdex-pfi-exemplar/src/example/full-tbdex-exchange.ts:119:5) { statusCode: 410, details: { errors: [ { detail: 'Quote is expired' } ] }, recipientDid: 'did:dht:sgwmpdi883ef4wuyf18e579wimypwg9ax71je9o5xbyn1mga1b8o', url: 'http://localhost:9000/exchanges/rfq_01hx5aj444ehbbctjfbfv9yqn5' }
might make sense to just take current date plus 15 mins
new Date(new Date().getTime() + 15 * 60000).toISOString()
The expiry date is hard coded here causing the test to fail with:
might make sense to just take current date plus 15 mins