Skip to content

Commit

Permalink
fix: remove fakeTimers attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielelpidio committed Sep 19, 2024
1 parent 2fa9975 commit 67ea7a1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions integration/src/client.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { gzip } from 'zlib';
import { describe, expect, it, beforeAll, afterAll, vi } from 'vitest';
import { describe, expect, it, beforeAll, afterAll } from 'vitest';
import { AxiomWithoutBatching, ContentType, ContentEncoding } from '@axiomhq/js';

const datasetSuffix = process.env.AXIOM_DATASET_SUFFIX || 'local';
Expand Down Expand Up @@ -119,15 +119,12 @@ baz`,

describe('apl tabular query', () => {
it('returns a valid response', async () => {
vi.useFakeTimers();
const status = await axiom.ingest(datasetName, { test: 'apl' });
expect(status.ingested).toEqual(1);

// wait 1 sec for ingestion to finish
await new Promise((resolve) => setTimeout(resolve, 1000));

vi.runAllTimers();

const result = await axiom.query("['" + datasetName + "'] | where ['test'] == 'apl' | project _time, ['test']", {
format: 'tabular',
});
Expand Down

0 comments on commit 67ea7a1

Please sign in to comment.