Skip to content

[CI trigger] Test fix for nodejs/node#63162#1

Open
soulee-dev wants to merge 2 commits into
mainfrom
pr-63162-ci-fix
Open

[CI trigger] Test fix for nodejs/node#63162#1
soulee-dev wants to merge 2 commits into
mainfrom
pr-63162-ci-fix

Conversation

@soulee-dev
Copy link
Copy Markdown
Owner

Not for merge β€” fork-only PR to exercise CI on the proposed fix for nodejs/node#63162.

This branch contains:

  1. The original PR author's commit (nodejs/node@b7bc8a8) β€” crypto: runtime-deprecate calling Hmac.digest() more than once
  2. A test fix commit on top, resolving the duplicate common.expectWarning conflict in test/parallel/test-crypto-hmac.js that was breaking CI on the upstream PR.

The goal is to verify that the upstream CI failure (AssertionError: Unexpected extra warning received: DeprecationWarning: Calling digest() ...) does not reproduce with the proposed fix.

Anshikakalpana and others added 2 commits May 7, 2026 02:48
Signed-off-by: anshikakalpana <anshikajain196872@gmail.com>
The existing inline `expectWarning` block at the bottom of the file
overwrites the top-of-file registration added by the previous commit,
because `expectWarning` stores expectations keyed by warning name
(`DeprecationWarning`) and the second call replaces the first.

Consolidate both DEP0181 and DEP0206 expectations into the single
top-of-file call and drop the now-redundant inline block. The
`crypto.Hmac('sha256', 'Node')` call earlier in the file already
exercises the constructor-without-`new` path that triggers DEP0181.
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