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

test-form-data.js fails on Node.js >= 20.x #47

Open
MikeMcC399 opened this issue Oct 12, 2023 · 0 comments
Open

test-form-data.js fails on Node.js >= 20.x #47

MikeMcC399 opened this issue Oct 12, 2023 · 0 comments

Comments

@MikeMcC399
Copy link

MikeMcC399 commented Oct 12, 2023

Version:

@cypress/request@3.0.1

npm install yarn@latest -g
git clone https://github.com/cypress-io/request
cd request
yarn install
node ./tests/test-form-data.js

fails for Node.js 20.8.0 20.12.1
running on Ubuntu 22.04.3 22.04.4 LTS.

The test succeeds with Node.js 18.18.1 18.20.1LTS.

Other tests called by yarn test succeed on Node.js 18.x and 20.x

Logs

$ node ./tests/test-form-data.js
TAP version 13
# multipart formData
ok 1 should be truthy
ok 2 should be truthy
ok 3 should be truthy
ok 4 should be truthy
ok 5 should be truthy
ok 6 should be truthy
ok 7 should be truthy
ok 8 should be truthy
ok 9 should be truthy
ok 10 should be truthy
ok 11 should be truthy
ok 12 should be truthy
ok 13 should be truthy
ok 14 should be truthy
ok 15 should be truthy
ok 16 should be truthy
ok 17 should be truthy
ok 18 should be truthy
ok 19 should be equal
ok 20 should be equal
ok 21 should be equivalent
# multipart formData + JSON
ok 22 should be truthy
ok 23 should be truthy
ok 24 should be truthy
ok 25 should be truthy
ok 26 should be truthy
ok 27 should be truthy
ok 28 should be truthy
ok 29 should be truthy
ok 30 should be truthy
ok 31 should be truthy
ok 32 should be truthy
ok 33 should be truthy
ok 34 should be truthy
ok 35 should be truthy
ok 36 should be truthy
ok 37 should be truthy
ok 38 should be truthy
ok 39 should be truthy
ok 40 should be equal
ok 41 should be equal
ok 42 should be equivalent
# multipart formData + basic auth
ok 43 should be equal
not ok 44 should be equal
  ---
    operator: equal
    expected: 200
    actual:   400
    at: Request._callback (/home/mike/github/cypress-io/request/tests/test-form-data.js:114:9)
    stack: |-
      Error: should be equal
          at Test.assert [as _assert] (/home/mike/github/cypress-io/request/node_modules/tape/lib/test.js:443:48)
          at Test.bound [as _assert] (/home/mike/github/cypress-io/request/node_modules/tape/lib/test.js:89:17)
          at Test.equal (/home/mike/github/cypress-io/request/node_modules/tape/lib/test.js:604:7)
          at Test.bound [as equal] (/home/mike/github/cypress-io/request/node_modules/tape/lib/test.js:89:17)
          at Request._callback (/home/mike/github/cypress-io/request/tests/test-form-data.js:114:9)
          at self.callback (/home/mike/github/cypress-io/request/request.js:183:22)
          at Request.emit (node:events:514:28)
          at Request.<anonymous> (/home/mike/github/cypress-io/request/request.js:1156:10)
          at Request.emit (node:events:514:28)
          at IncomingMessage.<anonymous> (/home/mike/github/cypress-io/request/request.js:1070:12)
  ...
not ok 45 should be equivalent
  ---
    operator: deepEqual
    expected: 'done'
    actual:   ''
    at: Request._callback (/home/mike/github/cypress-io/request/tests/test-form-data.js:115:9)
    stack: |-
      Error: should be equivalent
          at Test.assert [as _assert] (/home/mike/github/cypress-io/request/node_modules/tape/lib/test.js:443:48)
          at Test.bound [as _assert] (/home/mike/github/cypress-io/request/node_modules/tape/lib/test.js:89:17)
          at Test.tapeDeepEqual (/home/mike/github/cypress-io/request/node_modules/tape/lib/test.js:641:7)
          at Test.bound [as deepEqual] (/home/mike/github/cypress-io/request/node_modules/tape/lib/test.js:89:17)
          at Request._callback (/home/mike/github/cypress-io/request/tests/test-form-data.js:115:9)
          at self.callback (/home/mike/github/cypress-io/request/request.js:183:22)
          at Request.emit (node:events:514:28)
          at Request.<anonymous> (/home/mike/github/cypress-io/request/request.js:1156:10)
          at Request.emit (node:events:514:28)
          at IncomingMessage.<anonymous> (/home/mike/github/cypress-io/request/request.js:1070:12)
  ...

1..45
# tests 45
# pass  43
# fail  2
@MikeMcC399 MikeMcC399 changed the title yarn test-form-data.js fails on Node.js 20.x test-form-data.js fails on Node.js 20.x Oct 13, 2023
@MikeMcC399 MikeMcC399 changed the title test-form-data.js fails on Node.js 20.x test-form-data.js fails on Node.js >= 20.x Apr 30, 2024
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

No branches or pull requests

1 participant