Skip to content

Commit 1968506

Browse files
Reduce connections for CI/CD testing
1 parent 248614b commit 1968506

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/connection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ export class SQLiteCloudConnection {
163163

164164
this.operations.enqueue(done => {
165165
// clear all listeners and call done in the operations queue
166-
const finish: ResultsCallback = (error, result) => {
166+
const finish: ResultsCallback = error => {
167167
if (this.socket) {
168168
this.socket.removeAllListeners('data')
169169
this.socket.removeAllListeners('error')

src/database.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ export class Database extends EventEmitter {
128128
* @returns {SQLiteCloudConfig} A configuration object
129129
*/
130130
public getConfiguration(): SQLiteCloudConfig {
131-
return JSON.parse(JSON.stringify(this.config))
131+
return JSON.parse(JSON.stringify(this.config)) as SQLiteCloudConfig
132132
}
133133

134134
/** Enable verbose mode */

test/shared.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { readFileSync } from 'fs'
77
import { Database } from '../src/database'
88
import { ResultsCallback, SQLiteCloudConfig } from '../src/types'
99
import { parseConnectionString } from '../src/utilities'
10-
import sqlite3 from 'sqlite3'
1110

1211
import * as dotenv from 'dotenv'
1312
import { SQLiteCloudConnection } from '../src'
@@ -19,7 +18,7 @@ export const EXTRA_LONG_TIMEOUT = 60 * 60 * 1000 // 1 hour
1918
/** Number of times or size of stress (when repeated in sequence) */
2019
export const SEQUENCE_TEST_SIZE = 100
2120
/** Concurrency size for multiple connection tests */
22-
export const SIMULTANEOUS_TEST_SIZE = 500
21+
export const SIMULTANEOUS_TEST_SIZE = 200
2322

2423
/** Testing database from .env file */
2524
export const CHINOOK_DATABASE_URL = process.env.CHINOOK_DATABASE_URL as string

0 commit comments

Comments
 (0)