Skip to content

Commit

Permalink
update integration tests to pass url and orgId
Browse files Browse the repository at this point in the history
  • Loading branch information
dasfmi committed Sep 27, 2023
1 parent 68c2f9d commit 8e16b3f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion integration/src/client.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const datasetSuffix = process.env.AXIOM_DATASET_SUFFIX || 'local';

describe('Axiom', () => {
const datasetName = `test-axiom-js-client-${datasetSuffix}`;
const axiom = new AxiomWithoutBatching({ token: process.env.AXIOM_TOKEN || '' });
const axiom = new AxiomWithoutBatching({ token: process.env.AXIOM_TOKEN || '', url: process.env.AXIOM_URL, orgId: process.env.AXIOM_ORG_ID });

beforeAll(async () => {
await axiom.datasets.create({
Expand Down
2 changes: 1 addition & 1 deletion integration/src/datasets.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const datasetSuffix = process.env.AXIOM_DATASET_SUFFIX || 'local';

describe('DatasetsService', () => {
const datasetName = `test-axiom-js-datasets-${datasetSuffix}`;
const client = new datasets.Service({ token: process.env.AXIOM_TOKEN || ''});
const client = new datasets.Service({ token: process.env.AXIOM_TOKEN || '', url: process.env.AXIOM_URL, orgId: process.env.AXIOM_ORG_ID });

beforeAll(async () => {
await client.create({
Expand Down
2 changes: 1 addition & 1 deletion integration/src/winston.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe('WinstonTransport', () => {
level: 'info',
format: winston.format.json(),
defaultMeta: { service: 'user-service' },
transports: [new AxiomTransport({ token: process.env.AXIOM_TOKEN || '', dataset: datasetName })],
transports: [new AxiomTransport({ token: process.env.AXIOM_TOKEN || '', url: process.env.AXIOM_URL, orgId: process.env.AXIOM_ORG_ID, dataset: datasetName })],
});

beforeAll(async () => {
Expand Down

0 comments on commit 8e16b3f

Please sign in to comment.