Skip to content

Commit

Permalink
test(instrumentation-redis): Explicitly expect for a numeric port
Browse files Browse the repository at this point in the history
  • Loading branch information
Zirak committed Apr 17, 2024
1 parent f7c6f6f commit 498d968
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const memoryExporter = new InMemorySpanExporter();

const CONFIG = {
host: process.env.OPENTELEMETRY_REDIS_HOST || 'localhost',
port: process.env.OPENTELEMETRY_REDIS_PORT || 63790,
port: Number(process.env.OPENTELEMETRY_REDIS_PORT || 63790),
};

const URL = `redis://${CONFIG.host}:${CONFIG.port}`;
Expand Down

0 comments on commit 498d968

Please sign in to comment.