Skip to content

Commit

Permalink
Add test on erorr message on not supported setting
Browse files Browse the repository at this point in the history
  • Loading branch information
carlopi committed Mar 13, 2024
1 parent 10e7318 commit 2fceab8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/duckdb-wasm/test/httpfs_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -312,5 +312,14 @@ export function testHTTPFSAsync(
),
).toBeRejectedWithError('Invalid Error: File is not opened in write mode');
});

it('avoid autoloading on not supported httpfs settings', async () => {
await setAwsConfig(conn!);
await expectAsync(
conn!.query(
`set s3_url_style = 'path';`,
),
).toBeRejectedWithError(/Catalog Error: unrecognized configuration parameter "s3_url_style"/);
});
});
}

0 comments on commit 2fceab8

Please sign in to comment.