Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The test of test/client-dispatch.js fails. #2453

Closed
tsctx opened this issue Nov 23, 2023 · 1 comment
Closed

The test of test/client-dispatch.js fails. #2453

tsctx opened this issue Nov 23, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@tsctx
Copy link
Member

tsctx commented Nov 23, 2023

Bug Description

After the e495094, the test fails.

Reproducible By

> $ npx tap test/client-dispatch.js

See #Logs & Screenshots

Expected Behavior

Logs & Screenshots

(node:11348) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.                                                                                              
(Use `node --trace-deprecation ...` to show where the warning was created)                                  
test/client-dispatch.js 2> npm exec tap test/client-dispatch.js[14112]: c:\ws\src\api\callback.cc:145:      
test/client-dispatch.js 2> _async_id()) == (0)' failed.
​ FAIL ​ test/client-dispatch.js
 ✖ fail

  test/client-dispatch.js

              onBodySent (chunk) {
  802 |         throw new Error('fail')
      | --------------^
                         
              onError (err) {
                t.type(err, Error)

  test: dispatch onBodySent throws error
  stack: |
    Object.onBodySent (test/client-dispatch.js:802:15)
    Request.onBodySent (lib/core/request.js:232:29)
    write (lib/client.js:1634:13)
    _resume (lib/client.js:1478:29)
    resume (lib/client.js:1352:3)
    connect (lib/client.js:1337:3)
  tapCaught: unhandledRejection

test/client-dispatch.js 2>  1: 00007FF649E6C1FF node::SetCppgcReference+13695
test/client-dispatch.js 2>  2: 00007FF649DE4E16 DSA_meth_get_flags+75686
test/client-dispatch.js 2>  3: 00007FF649DE5212 DSA_meth_get_flags+76706
test/client-dispatch.js 2>  4: 00007FF649EA4C99
test/client-dispatch.js 2> ackScope+841
test/client-dispatch.js 2>  5: 00007FF649EA49BE
test/client-dispatch.js 2> ackScope+110
test/client-dispatch.js 2>  6: 00007FF649E62A1B node_api_throw_syntax_error+166091
 
test/client-dispatch.js 2>  7: 00007FF649E4AE7A node_api_throw_syntax_error+68906
test/client-dispatch.js 2>  8: 00007FF649EC6D71 uv_pipe_pending_type+849
test/client-dispatch.js 2>  9: 00007FF649ED388D uv_run+1021
test/client-dispatch.js 2> 10: 00007FF649EA4232 node::SpinEventLoop+402
test/client-dispatch.js 2> 11: 00007FF649D94E63 EVP_CIPHER_CTX_get_cipher_data+153187
 2> 
test/client-dispatch.js 2> 12: 00007FF649E2689A node::Start+4106
test/client-dispatch.js 2> 13: 00007FF649E258B7 node::Start+39
test/client-dispatch.js 2> 14: 00007FF649BFEA1C AES_cbc_encrypt+151628
test/client-dispatch.js 2> 15: 00007FF64B1FE340 inflateValidate+19248
test/client-dispatch.js 2> 16: 00007FFDC247257D BaseThreadInitThunk+29
test/client-dispatch.js 2> 17: 00007FFDC2B8AA58 RtlUserThreadStart+40
​ FAIL ​ test/client-dispatch.js 1 failed of 76 951.85ms
 ✖ fail




  🌈 SUMMARY RESULTS 🌈  
                         
​ FAIL ​ test/client-dispatch.js 1 failed of 76 951.85ms
 ✖ fail


Suites:   ​1 failed​, ​1 of 1 completed​
Asserts:  ​​​1 failed​, ​75 passed​, ​of 76​
​Time:​   ​1s
(node:13452) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
​ PASS ​ test/client-dispatch.js 77 OK 323.044ms



  🌈 SUMMARY RESULTS 🌈  
                         

Suites:   ​1 passed​, ​1 of 1 completed​
Asserts:  ​​​77 passed​, ​of 77​
​Time:​   ​839.618ms

Environment

Additional context

@tsctx tsctx added the bug Something isn't working label Nov 23, 2023
@metcoder95
Copy link
Member

Closed by #2452

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants