Skip to content

Fix SDJWTVC Parser test that waited for a network fetch until timeout - #116

Merged
pstamatop merged 1 commit into
masterfrom
fix/sd-jwt-vc-parser-test-timeout
Jul 15, 2026
Merged

Fix SDJWTVC Parser test that waited for a network fetch until timeout#116
pstamatop merged 1 commit into
masterfrom
fix/sd-jwt-vc-parser-test-timeout

Conversation

@vmarkop

@vmarkop vmarkop commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

This PR fixes a failing SDJWTVCParser test case, which timed out awaiting a network fetch for issuer's metadata. Since the test case handles a credential without metadata, and the issuer does not provide any metadata, the httpClient for this test case has been replaced with a metadataNotFoundHttpClient that immediately returns 404.

Additionally, convertDataUriToImage() is no longer used to write the image to disk, as its output was never parsed. Success is implied by the image element starting with 'data:image/'.

After the above changes, the test finishes far below the 5000ms threshold.

   ✓ The SDJWTVCParser > should parse credential without metadata succesfully 24ms

@pstamatop
pstamatop merged commit f1e32a0 into master Jul 15, 2026
6 checks passed
@vmarkop
vmarkop deleted the fix/sd-jwt-vc-parser-test-timeout branch July 15, 2026 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants