Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

Commit

Permalink
test: typo in spec
Browse files Browse the repository at this point in the history
  • Loading branch information
10xLaCroixDrinker committed Jan 2, 2024
1 parent eb166b0 commit 0400da3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions __tests__/server/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -370,13 +370,13 @@ describe('server index', () => {
expect(util.format(...console.error.mock.calls[0])).toMatchSnapshot();
});

it('does not log a notice directly to STDOUT when not using OTel and listening on the server fails', async () => {
it('does not log a notice directly to STDERR when not using OTel and listening on the server fails', async () => {
delete process.env.OTEL_EXPORTER_OTLP_LOGS_ENDPOINT;
await load({ ssrServerError: true });
expect(process.stderr.write).not.toHaveBeenCalled();
});

it('logs a notice directly to STDOUT when using OTel and listening on the server fails', async () => {
it('logs a notice directly to STDERR when using OTel and listening on the server fails', async () => {
process.env.OTEL_EXPORTER_OTLP_LOGS_ENDPOINT = 'http://0.0.0.0:4317/v1/logs';
await load({ ssrServerError: true });
expect(process.stderr.write).toHaveBeenCalledTimes(1);
Expand All @@ -398,13 +398,13 @@ describe('server index', () => {
expect(util.format(...console.error.mock.calls[0])).toMatchSnapshot();
});

it('does not log a notice directly to STDOUT when not using OTel and listening on the metrics server fails', async () => {
it('does not log a notice directly to STDERR when not using OTel and listening on the metrics server fails', async () => {
delete process.env.OTEL_EXPORTER_OTLP_LOGS_ENDPOINT;
await load({ metricsServerError: true });
expect(process.stderr.write).not.toHaveBeenCalled();
});

it('logs a notice directly to STDOUT when using OTel and listening on the metrics server fails', async () => {
it('logs a notice directly to STDERR when using OTel and listening on the metrics server fails', async () => {
process.env.OTEL_EXPORTER_OTLP_LOGS_ENDPOINT = 'http://0.0.0.0:4317/v1/logs';
await load({ metricsServerError: true });
expect(process.stderr.write).toHaveBeenCalledTimes(1);
Expand Down

0 comments on commit 0400da3

Please sign in to comment.