Merged
Show file tree
Hide file tree
Changes from all commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Failed to load files.
Original file line numberDiff line numberDiff line change
Expand Up@@ -17,13 +17,13 @@ jobs:
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
strategy:
matrix:
node: ['8', '10', '12', '14', '16', '17']
node: ['8', '10', '12', '14', '16', '18']
os: [ubuntu-latest, windows-latest, macos-latest]
name: Node.js ${{ matrix.node }} (${{ matrix.os }})
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: yarn
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -39,7 +39,6 @@
"mocha": "^7.1.2",
"pg": "^8.7.3",
"stream-spec": "~0.3.5",
"stream-tester": "0.0.5",
"ts-node": "^8.5.4",
"typescript": "^4.0.3"
},
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -11,7 +11,6 @@ var Server = function (response) {
this.response = response
}

let port = 54321
Server..start = function (cb) {
// this is our fake postgres server
// it responds with our specified response immediatley after receiving every buffer
Expand DownExpand Up@@ -40,14 +39,13 @@ Server..start = function (cb) {
}.bind(this)
)

port = port + 1

var options = {
host: 'localhost',
port: port,
}
this.server.listen(options.port, options.host, function () {
cb(options)
const host = 'localhost'
this.server.listen({ host, port: 0 }, () => {
const port = this.server.address().port
cb({
host,
port,
})
})
}

Expand Down