pinpoint-apm / pinpoint-node-agent

Pinpoint Node.js agent
Apache License 2.0
56 stars 10 forks source link

Fix redis functional test with testcontainers #194

Closed feelform closed 3 months ago

feelform commented 3 months ago
  1. redis container
    
    # express-redis should Record the connections between express and redis.
    node:events:497
      throw er; // Unhandled 'error' event
      ^

Error: connect ECONNREFUSED 127.0.0.1:32785 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1606:16) Emitted 'error' event on RedisClient instance at: at RedisClient.on_error (/home/runner/work/pinpoint-node-agent/pinpoint-node-agent/node_modules/redis/index.js:342:14) at Socket. (/home/runner/work/pinpoint-node-agent/pinpoint-node-agent/node_modules/redis/index.js:223:14) at Socket.emit (node:events:519:28) at emitErrorNT (node:internal/streams/destroy:169:8) at emitErrorCloseNT (node:internal/streams/destroy:128:3) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) { errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: '127.0.0.1', port: 32785 }

Node.js v20.15.0



2. MysqlContainer: `https://node.testcontainers.org/modules/mysql/`