Skip to content

Commit 853b31c

Browse files
Update bun tests
1 parent d76fb8d commit 853b31c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/gateway/connection-bun.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ describe('SQLiteCloudBunConnection', () => {
172172

173173
test('should test rowset', async () => {
174174
const results = await sendCommands(chinookConnection, 'TEST ROWSET')
175-
expect(results.numberOfRows).toBe(41)
175+
expect(results.numberOfRows).toBeGreaterThanOrEqual(30)
176176
expect(results.numberOfColumns).toBe(2)
177177
expect(results.version == 1 || results.version == 2).toBeTruthy()
178178
expect(results.columnsNames).toEqual(['key', 'value'])

src/gateway/connection-bun.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ export class SQLiteCloudBunConnection extends SQLiteCloudConnection {
204204
} catch (error) {
205205
console.assert(error instanceof Error)
206206
if (error instanceof Error) {
207-
this.processCommandsFinish?.call(this, error)
207+
this.processCommandsFinish?.call(this, error, null)
208208
}
209209
}
210210
}

0 commit comments

Comments
 (0)