Skip to content

Multiple tests will fail on Windows. #22147

Description

@briete
  • Version: 11.0.0-pre (master)
  • Platform: windows7 64bit
  • Subsystem:

It will cause errors in multiple Windows tests.
I am using Git for Windows Bash tool.
Paste the error log.

running 'python tools\test.py --mode=release  -J default doctool addons addons-napi'
Skipping pseudo-tty tests, as pseudo terminals are not available on Windows.
=== release test-http-1.0 ===
Path: parallel/test-http-1.0
assert.js:84
  throw new AssertionError(obj);
  ^

AssertionError [ERR_ASSERTION]: Expected inputs to be strictly equal:
+ actual - expected

+ 'HTTP/1.1 200 OK\r\nContent-Type: text/plain\r\nConnection: close\r\nTransfer-Encoding: chunked\r\n\r\n7\r\nHello, \r\n6\r\nworld!\r\n0\r\n\r\n'
- 'HTTP/1.1 200 OK\r\nContent-Type: text/plain\r\nConnection: close\r\nTransfer-Encoding: chunked\r\n\r\nd\r\nHello, world!\r\n0\r\n\r\n'
    at response_validator (C:\Users\sato14\github\node\test\parallel\test-http-1.0.js:158:12)
    at Socket.<anonymous> (C:\Users\sato14\github\node\test\parallel\test-http-1.0.js:54:7)
    at Socket.<anonymous> (C:\Users\sato14\github\node\test\common\index.js:467:15)
    at Socket.emit (events.js:187:15)
    at endReadableNT (_stream_readable.js:1081:12)
    at process._tickCallback (internal/process/next_tick.js:63:19)
Command: C:\Users\sato14\github\node\Release\node.exe C:\Users\sato14\github\node\test\parallel\test-http-1.0.js
=== release test-http-client-timeout-with-data ===
Path: parallel/test-http-client-timeout-with-data
assert.js:84
  throw new AssertionError(obj);
  ^

AssertionError [ERR_ASSERTION]: Expected inputs to be strictly equal:

0 !== 1

    at ClientRequest.<anonymous> (C:\Users\sato14\github\node\test\parallel\test-http-client-timeout-with-data.js:49:14)
    at ClientRequest.<anonymous> (C:\Users\sato14\github\node\test\common\index.js:467:15)
    at Object.onceWrapper (events.js:273:13)
    at ClientRequest.emit (events.js:182:13)
    at Socket.emitRequestTimeout (_http_client.js:669:40)
    at Object.onceWrapper (events.js:273:13)
    at Socket.emit (events.js:182:13)
    at Socket._onTimeout (net.js:448:8)
    at ontimeout (timers.js:454:11)
    at tryOnTimeout (timers.js:326:5)
Command: C:\Users\sato14\github\node\Release\node.exe C:\Users\sato14\github\node\test\parallel\test-http-client-timeout-with-data.js
=== release test-http-multi-line-headers ===
Path: parallel/test-http-multi-line-headers
assert.js:84
  throw new AssertionError(obj);
  ^

AssertionError [ERR_ASSERTION]: Expected inputs to be strictly equal:
+ actual - expected

+ 'text/plain;'
- 'text/plain; x-unix-mode=0600; name="hello.txt"'
              ^
    at ClientRequest.<anonymous> (C:\Users\sato14\github\node\test\parallel\test-http-multi-line-headers.js:51:12)
    at ClientRequest.<anonymous> (C:\Users\sato14\github\node\test\common\index.js:467:15)
    at Object.onceWrapper (events.js:273:13)
    at ClientRequest.emit (events.js:182:13)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:563:21)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:109:17)
    at Socket.socketOnData (_http_client.js:449:20)
    at Socket.emit (events.js:182:13)
    at addChunk (_stream_readable.js:283:12)
    at readableAddChunk (_stream_readable.js:264:11)
Command: C:\Users\sato14\github\node\Release\node.exe C:\Users\sato14\github\node\test\parallel\test-http-multi-line-headers.js
=== release test-http-readable-data-event ===
Path: parallel/test-http-readable-data-event
assert.js:84
  throw new AssertionError(obj);
  ^

AssertionError [ERR_ASSERTION]: Expected inputs to be strictly equal:
+ actual - expected

+ null
- 'Hello again later!'
    at IncomingMessage.res.on.common.mustCall (C:\Users\sato14\github\node\test\parallel\test-http-readable-data-event.js:42:16)
    at IncomingMessage.<anonymous> (C:\Users\sato14\github\node\test\common\index.js:467:15)
    at IncomingMessage.emit (events.js:182:13)
    at emitReadable_ (_stream_readable.js:531:12)
    at onEofChunk (_stream_readable.js:509:7)
    at readableAddChunk (_stream_readable.js:232:5)
    at IncomingMessage.Readable.push (_stream_readable.js:219:10)
    at Socket.socketCloseListener (_http_client.js:361:11)
    at Socket.emit (events.js:187:15)
    at TCP._handle.close (net.js:599:12)
Command: C:\Users\sato14\github\node\Release\node.exe C:\Users\sato14\github\node\test\parallel\test-http-readable-data-event.js
--- TIMEOUT ---
=== release test-benchmark-tls ===
Path: sequential/test-benchmark-tls
(node:10572) [DEP0064] DeprecationWarning: tls.createSecurePair() is deprecated. Please use tls.TLSSocket instead.
events.js:167
      throw er; // Unhandled 'error' event
      ^

Error: read ECONNRESET
    at TLSWrap.onread (net.js:660:25)
Emitted 'error' event at:
    at emitErrorNT (internal/streams/destroy.js:82:8)
    at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
    at process._tickCallback (internal/process/next_tick.js:63:19)
assert.js:84
  throw new AssertionError(obj);
  ^

AssertionError [ERR_ASSERTION]: Expected inputs to be strictly equal:

1 !== 0

    at ChildProcess.child.on (C:\Users\sato14\github\node\test\common\benchmark.js:35:12)
    at ChildProcess.emit (events.js:182:13)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:239:12)
Command: C:\Users\sato14\github\node\Release\node.exe C:\Users\sato14\github\node\test\sequential\test-benchmark-tls.js
=== release test-http-server-keep-alive-timeout-slow-client-headers ===
Path: sequential/test-http-server-keep-alive-timeout-slow-client-headers
assert.js:338
    throw err;
    ^

AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:

  assert.ok(response.includes('HTTP/1.1 200 OK\r\n'))

    at onHeaders (C:\Users\sato14\github\node\test\sequential\test-http-server-keep-alive-timeout-slow-client-headers.js:52:14)
    at Socket.onData (C:\Users\sato14\github\node\test\sequential\test-http-server-keep-alive-timeout-slow-client-headers.js:47:9)
    at Socket.emit (events.js:182:13)
    at addChunk (_stream_readable.js:283:12)
    at readableAddChunk (_stream_readable.js:260:13)
    at Socket.Readable.push (_stream_readable.js:219:10)
    at TCP.onread (net.js:639:20)
Command: C:\Users\sato14\github\node\Release\node.exe C:\Users\sato14\github\node\test\sequential\test-http-server-keep-alive-timeout-slow-client-headers.js
[07:15|% 100|+ 2341|-   6]: Done

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    testIssues and PRs related to Node.js core tests and test infrastructure.windowsIssues and PRs related to the Windows platform.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions