Skip to content

Commit 8553e30

Browse files
Fix xxl test
1 parent 0bb54b6 commit 8553e30

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/connection-tls.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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}`)

0 commit comments

Comments
 (0)