Skip to content

Commit

Permalink
Fixed test syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
DMickens committed Jan 25, 2024
1 parent 6c9a1ba commit 6a669b0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ describe('Running Copy From Local Stdin Commands', function () {
it ('succeeds with basic copy from stdin command', function(done) {
const readableStream = fs.createReadStream(goodFilePath, { encoding: 'utf8' })
readableStream.on('open', () => {
pool.query("COPY copyTable FROM LOCAL STDIN REJECTED DATA RETURNREJECTED", {copyStream: readableStream}, (err, res) => {
pool.query("COPY copyTable FROM LOCAL STDIN RETURNREJECTED", {copyStream: readableStream}, (err, res) => {
assert.equal(err, undefined)
assert.equal(res.rows[0]['Rows Loaded'], 5)
done()
Expand Down

0 comments on commit 6a669b0

Please sign in to comment.