Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
e1arikawa committed Sep 23, 2024
2 parents 0419e19 + ac87ba2 commit 8491003
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/duckdb-wasm/test/httpfs_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -313,17 +313,16 @@ export function testHTTPFSAsync(
),
).toBeRejectedWithError('Invalid Error: File is not opened in write mode');
});
});

describe('Long URL and Query String Tests', () => {
it('can read parquet file', async () => {
it('can read parquet file with long query string', async () => {
const queryString = generateLongQueryString();
const result = await conn!.query(
`SELECT * FROM "${S3_ENDPOINT}/${BUCKET_NAME}/correct_auth_test.parquet?${queryString}";`,
);
expect(Number((result.getChildAt(0)?.get(6)))).toEqual(Number(29120));
});
it('can read csv file', async () => {

it('can read csv file with long query string', async () => {
const queryString = generateLongQueryString();
const result = await conn!.query(
`SELECT * FROM "${S3_ENDPOINT}/${BUCKET_NAME}/correct_auth_test.csv?${queryString}";`,
Expand Down

0 comments on commit 8491003

Please sign in to comment.