File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -496,14 +496,16 @@ describe('connection-tls', () => {
496496 while ( longSql . length < XXL_QUERY ) {
497497 longSql += `${ longSql . length } _`
498498 }
499- longSql = `SELECT 'start_${ longSql } end'`
499+ const selectedValue = `start_${ longSql } end`
500+ longSql = `SELECT '${ selectedValue } '`
500501 try {
501502 const longResults = await sendCommandsAsync ( connection , longSql )
502503 expect ( longResults ) . toBeInstanceOf ( SQLiteCloudRowset )
503504 if ( longResults instanceof SQLiteCloudRowset ) {
504505 expect ( longResults . numberOfColumns ) . toBe ( 1 )
505506 expect ( longResults . numberOfRows ) . toBe ( 1 )
506- expect ( longResults [ 0 ] [ 'HowLargeIsTooMuch' ] ) . toBeGreaterThanOrEqual ( longSql . length - 50 )
507+ const columnName = longResults . columnsNames [ 0 ]
508+ expect ( longResults [ 0 ] [ columnName ] ) . toBe ( selectedValue )
507509 }
508510 } catch ( error ) {
509511 console . error ( `An error occoured while sending an xxl query of ${ longSql . length } bytes, error: ${ error } ` )
You can’t perform that action at this time.
0 commit comments