TAP version 13 not ok 1 - appmetrics-zipkin v1.1.1 The canary is dead: ---
# undefinedadded 599 packages from 1096 contributors and audited 2874 packages in 48.899s
# found 17 vulnerabilities (15 moderate, 2 high)
# run `npm audit fix` to fix them, or `npm audit` for details
# > appmetrics-zipkin@1.1.1 pretest /tmp/bdb9a92b-55fe-4944-a218-de2a496cf579/appmetrics-zipkin
# > eslint .
# > appmetrics-zipkin@1.1.1 test /tmp/bdb9a92b-55fe-4944-a218-de2a496cf579/appmetrics-zipkin
# > npm run test:unit && npm run test:integration
# > appmetrics-zipkin@1.1.1 test:unit /tmp/bdb9a92b-55fe-4944-a218-de2a496cf579/appmetrics-zipkin
# > mocha test/unit/
# aspect
# before
# should call hook before target method
# should pass original arguments
# after
# should call hook after target method
# findCallbackArg
# should find a callback among parameters
# should not find a callback among parameters with no callback
# aroundCallBack
# - should call hook before and after args callback
# around
# should call hook before and after target methods
# 6 passing (26ms)
# 1 pending
# > appmetrics-zipkin@1.1.1 test:integration /tmp/bdb9a92b-55fe-4944-a218-de2a496cf579/appmetrics-zipkin
# > mocha -t 3000 test/integration/
# http requests
# outbound requests
# Unable to contact Zipkin at 127.0.0.1:9411
# 1) should reach zipkin with a simple http request (string options)
# 2) should reach zipkin with a simple http request (object options)
# 0 passing (2s)
# 2 failing
# 1) http requests
# outbound requests
# should reach zipkin with a simple http request (string options):
# RequestError: Error: connect ECONNREFUSED 127.0.0.1:9411
# at new RequestError (node_modules/request-promise-core/lib/errors.js:14:15)
# at Request.plumbing.callback (node_modules/request-promise-core/lib/plumbing.js:87:29)
# at Request.RP$callback [as _callback] (node_modules/request-promise-core/lib/plumbing.js:46:31)
# at self.callback (node_modules/request/request.js:186:22)
# at Request.onRequestError (node_modules/request/request.js:845:8)
# at Socket.socketErrorListener (_http_client.js:391:9)
# at emitErrorNT (internal/streams/destroy.js:82:8)
# at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
# at /tmp/bdb9a92b-55fe-4944-a218-de2a496cf579/appmetrics-zipkin/node_modules/async-listener/glue.js:188:31
# at process._tickCallback (internal/process/next_tick.js:63:19)
# 2) http requests
# outbound requests
# should reach zipkin with a simple http request (object options):
# RequestError: Error: connect ECONNREFUSED 127.0.0.1:9411
# at new RequestError (node_modules/request-promise-core/lib/errors.js:14:15)
# at Request.plumbing.callback (node_modules/request-promise-core/lib/plumbing.js:87:29)
# at Request.RP$callback [as _callback] (node_modules/request-promise-core/lib/plumbing.js:46:31)
# at self.callback (node_modules/request/request.js:186:22)
# at Request.onRequestError (node_modules/request/request.js:845:8)
# at Socket.socketErrorListener (_http_client.js:391:9)
# at emitErrorNT (internal/streams/destroy.js:82:8)
# at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
# at /tmp/bdb9a92b-55fe-4944-a218-de2a496cf579/appmetrics-zipkin/node_modules/async-listener/glue.js:188:31
# at process._tickCallback (internal/process/next_tick.js:63:19)
# Error sending Zipkin data { FetchError: request to http://127.0.0.1:9411/api/v1/spans failed, reason: connect ECONNREFUSED 127.0.0.1:9411
# at ClientRequest. (/tmp/bdb9a92b-55fe-4944-a218-de2a496cf579/appmetrics-zipkin/node_modules/node-fetch/index.js:133:11)
# at ClientRequest.emit (events.js:182:13)
# at Socket.socketErrorListener (_http_client.js:391:9)
# at Socket.emit (events.js:182:13)
# at emitErrorNT (internal/streams/destroy.js:82:8)
# at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
# at /tmp/bdb9a92b-55fe-4944-a218-de2a496cf579/appmetrics-zipkin/node_modules/async-listener/glue.js:188:31
# at process._tickCallback (internal/process/next_tick.js:63:19)
# name: 'FetchError',
# message:
# 'request to http://127.0.0.1:9411/api/v1/spans failed, reason: connect ECONNREFUSED 127.0.0.1:9411',
# type: 'system',
# errno: 'ECONNREFUSED',
# code: 'ECONNREFUSED' }
# Error sending Zipkin data { FetchError: request to http://127.0.0.1:9411/api/v1/spans failed, reason: connect ECONNREFUSED 127.0.0.1:9411
# at ClientRequest. (/tmp/bdb9a92b-55fe-4944-a218-de2a496cf579/appmetrics-zipkin/node_modules/node-fetch/index.js:133:11)
# at ClientRequest.emit (events.js:182:13)
# at Socket.socketErrorListener (_http_client.js:391:9)
# at Socket.emit (events.js:182:13)
# at emitErrorNT (internal/streams/destroy.js:82:8)
# at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
# at /tmp/bdb9a92b-55fe-4944-a218-de2a496cf579/appmetrics-zipkin/node_modules/async-listener/glue.js:188:31
# at process._tickCallback (internal/process/next_tick.js:63:19)
# name: 'FetchError',
# message:
# 'request to http://127.0.0.1:9411/api/v1/spans failed, reason: connect ECONNREFUSED 127.0.0.1:9411',
# type: 'system',
# errno: 'ECONNREFUSED',
# code: 'ECONNREFUSED' }
# npm ERR! code ELIFECYCLE
# npm ERR! errno 2
# npm ERR! appmetrics-zipkin@1.1.1 test:integration: `mocha -t 3000 test/integration/`
# npm ERR! Exit status 2
# npm ERR!
# npm ERR! Failed at the appmetrics-zipkin@1.1.1 test:integration script.
# npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
# npm ERR! A complete log of this run can be found in:
# npm ERR! /home/jenkins/.npm/_logs/2019-04-24T21_31_46_801Z-debug.log
# npm ERR! Test failed. See above for more details. duration_ms: 63032 ... 1..1