File tree Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -72,29 +72,23 @@ describe('test js parser error max result', () => {
7272 // Create a table with large data for testing
7373 beforeAll ( async ( ) => {
7474 // Create a table with a large text column
75- await pgMeta . query (
76- `
75+ await pgMeta . query ( `
7776 CREATE TABLE very_large_data (
7877 id SERIAL PRIMARY KEY,
7978 data TEXT
8079 );
81- ` ,
82- false
83- )
80+ ` )
8481
8582 // Insert data that will exceed our limit in tests it's set around ~20MB
86- await pgMeta . query (
87- `
83+ await pgMeta . query ( `
8884 INSERT INTO very_large_data (data)
8985 VALUES (repeat('x', 710 * 1024 * 1024)) -- 700+MB string will raise a JS exception at parse time
90- ` ,
91- false
92- )
86+ ` )
9387 } )
9488
9589 afterAll ( async ( ) => {
9690 // Clean up the test table
97- await pgMeta . query ( 'DROP TABLE very_large_data;' , false )
91+ await pgMeta . query ( 'DROP TABLE very_large_data;' )
9892 } )
9993
10094 test (
You can’t perform that action at this time.
0 commit comments