[Pkg-javascript-devel] Bug#865510: test fail with node-debug 2.6.6

Pirate Praveen praveen at onenetbeyond.org
Thu Jun 22 07:42:58 UTC 2017


Package: node-websocket
version: 1.0.23-3

While trying to update node-debug from 2.5.1 to 2.6.6, 2 out of 5 tests
failed for node-websocket, please investigate and fix the tests so we
can update node-debug to new upstream release. node-debug 2.6.6 is in
team git repo in alioth.

tap test/unit
TAP version 13
# Subtest: test/unit/dropBeforeAccept.js
    # Subtest: Drop TCP Connection Before server accepts the request
        1..5
        ok 1 - Request received
        ok 2 - Server should emit connect event
        ok 3 - Connection should emit close event
        ok 4 - Close reason code should be 1006
        ok 5 - Description should be correct
    ok 1 - Drop TCP Connection Before server accepts the request #
time=560.265ms

    1..1
    # time=656.537ms
ok 1 - test/unit/dropBeforeAccept.js # time=844.962ms

# Subtest: test/unit/regressions.js
    # Subtest: Issue 195 - passing number to connection.send() shouldn't
throw
    /<<PKGBUILDDIR>>/test/scripts/echo-server.js
        not ok 1 - Unable to start echo server: Error: Echo Server
exited unexpectedly with code 1
          ---
          at:
            line: 8
            column: 25
            file: test/unit/regressions.js
          stack: |
            test/unit/regressions.js:8:25
            ChildProcess.<anonymous> (test/shared/start-echo-server.js:46:7)
          source: |
            if (err) { return t.fail('Unable to start echo server: ' +
err); }
          ...
        not ok 2 - test unfinished: Issue 195 - passing number to
connection.send() shouldn't throw
          ---
          at:
            line: 6
            column: 1
            file: test/unit/regressions.js
          source: >
            test('Issue 195 - passing number to connection.send()
shouldn\'t throw',
            function(t) {
          ...
        1..2
        # failed 2 of 2 tests
    not ok 1 - Issue 195 - passing number to connection.send() shouldn't
throw # time=273.575ms
      ---
      at:
        line: 6
        column: 1
        file: test/unit/regressions.js
      results:
        plan:
          start: 1
          end: 2
        count: 2
        pass: 0
        ok: false
        fail: 2
        time: 273.575
      source: >
        test('Issue 195 - passing number to connection.send() shouldn\'t
throw',
        function(t) {
      ...

    1..1
    # failed 1 of 1 tests
    # time=367.278ms
not ok 2 - test/unit/regressions.js # time=604.591ms
  ---
  exitCode: 1
  results:
    count: 1
    plan:
      start: 1
      end: 1
    pass: 0
    ok: false
    fail: 1
  command: /usr/bin/nodejs
  file: test/unit/regressions.js
  timeout: 30000
  arguments:
    - test/unit/regressions.js
  ...

# Subtest: test/unit/request.js
    # Subtest: Request can only be rejected or accepted once.
        1..6
        ok 1 - First call to accept() should succeed.
        ok 2 - Second call to accept() should throw.
        ok 3 - Call to reject() after accept() should throw.
        ok 4 - First call to reject() should succeed.
        ok 5 - Second call to reject() should throw.
        ok 6 - Call to accept() after reject() should throw.
    ok 1 - Request can only be rejected or accepted once. # time=59.71ms

    # Subtest: Protocol mismatch should be handled gracefully
        1..2
        # Subtest: setup
            1..0
        ok 1 - setup # time=4.365ms

        # Subtest: mismatched protocol connection
            1..2
            ok 1 - request.accept() should throw
            ok 2 - connectFailed event should be emitted on client
        ok 2 - mismatched protocol connection # time=16.576ms
    ok 2 - Protocol mismatch should be handled gracefully # time=36.471ms

    1..2
    # time=165.415ms
ok 3 - test/unit/request.js # time=371.21ms

# Subtest: test/unit/w3cwebsocket.js
    # Subtest: W3CWebSockets adding event listeners with ws.onxxxxx
    /<<PKGBUILDDIR>>/test/scripts/echo-server.js
        not ok 1 - Unable to start echo server: Error: Echo Server
exited unexpectedly with code 1
          ---
          at:
            line: 12
            column: 25
            file: test/unit/w3cwebsocket.js
          stack: |
            test/unit/w3cwebsocket.js:12:25
            ChildProcess.<anonymous> (test/shared/start-echo-server.js:46:7)
          source: |
            if (err) { return t.fail('Unable to start echo server: ' +
err); }
          ...
        not ok 2 - test unfinished: W3CWebSockets adding event listeners
with ws.onxxxxx
          ---
          at:
            line: 7
            column: 1
            file: test/unit/w3cwebsocket.js
          source: |
            test('W3CWebSockets adding event listeners with ws.onxxxxx',
function(t) {
          ...
        1..2
        # failed 2 of 2 tests
    not ok 1 - W3CWebSockets adding event listeners with ws.onxxxxx #
time=164.098ms
      ---
      at:
        line: 7
        column: 1
        file: test/unit/w3cwebsocket.js
      results:
        plan:
          start: 1
          end: 2
        count: 2
        pass: 0
        ok: false
        fail: 2
        time: 164.098
      source: |
        test('W3CWebSockets adding event listeners with ws.onxxxxx',
function(t) {
      ...

    not ok 2 - child test left in queue: W3CWebSockets adding event
listeners with ws.addEventListener
      ---
      at:
        line: 41
        column: 1
        file: test/unit/w3cwebsocket.js
      source: >
        test('W3CWebSockets adding event listeners with
ws.addEventListener',
        function(t) {
      ...
    1..2
    # failed 2 of 2 tests
    # time=234.611ms
not ok 4 - test/unit/w3cwebsocket.js # time=398.583ms
  ---
  exitCode: 1
  results:
    count: 2
    plan:
      start: 1
      end: 2
    pass: 0
    ok: false
    fail: 2
  command: /usr/bin/nodejs
  file: test/unit/w3cwebsocket.js
  timeout: 30000
  arguments:
    - test/unit/w3cwebsocket.js
  ...

# Subtest: test/unit/websocketFrame.js
    # Subtest: Serializing a WebSocket Frame with no data
        1..2
        ok 1 - should not throw an error
        ok 2 - Generated bytes should be correct
    ok 1 - Serializing a WebSocket Frame with no data # time=18.948ms

    1..1
    # time=49.6ms
ok 5 - test/unit/websocketFrame.js # time=194.206ms

1..5
# failed 2 of 5 tests
# time=2460.176ms
debian/rules:17: recipe for target 'override_dh_auto_test-arch' failed
make[1]: *** [override_dh_auto_test-arch] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules:14: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-javascript-devel/attachments/20170622/e19999d6/attachment.sig>


More information about the Pkg-javascript-devel mailing list