Skip to content

Commit

Permalink
fix healthz test
Browse files Browse the repository at this point in the history
  • Loading branch information
jchartrand committed Aug 16, 2024
1 parent e4db582 commit 7bc2462
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,8 @@ export async function build (opts = {}) {

app.get('/healthz', async function (req, res) {
try {
const { data } = await axios.post(
`${req.protocol}://${req.headers.host}/instance/${defaultTenantName}/credentials/issue`,
getUnsignedVC()
)
const endpoint = `${req.protocol}://${req.headers.host}/instance/${defaultTenantName}/credentials/issue`
const { data } = await axios.post(endpoint, getUnsignedVC())
if (!data.proof) { throw new IssuingException(503, 'issuer-coordinator healthz failed') }
} catch (e) {
console.log(`exception in healthz: ${JSON.stringify(e)}`)
Expand Down
2 changes: 1 addition & 1 deletion src/test-fixtures/nocks/healthz_status_signing.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7bc2462

Please sign in to comment.