Commit dc1a021
committed
test: fix expectWarning conflict in test-crypto-hmac
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.1 parent b7bc8a8 commit dc1a021
1 file changed
Lines changed: 1 addition & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
466 | 467 | | |
467 | 468 | | |
468 | 469 | | |
469 | | - | |
470 | | - | |
471 | | - | |
472 | | - | |
473 | | - | |
474 | | - | |
475 | | - | |
476 | | - | |
477 | | - | |
478 | | - | |
0 commit comments