Skip to content

Commit 1094040

Browse files
committed
Fix test
1 parent ee775eb commit 1094040

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

test/integration/gh-issues/699-tests.js

+2-5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ var helper = require('../test-helper');
22
var assert = require('assert');
33
var copyFrom = require('pg-copy-streams').from;
44

5+
if(helper.args.native) return;
56

67
helper.pg.connect(function (err, client, done) {
78
if (err) throw err;
@@ -11,16 +12,12 @@ helper.pg.connect(function (err, client, done) {
1112
client.query(c, function (err) {
1213
if (err) throw err;
1314

14-
var stream = con.query(copyFrom("COPY employee FROM STDIN"));
15+
var stream = client.query(copyFrom("COPY employee FROM STDIN"));
1516
stream.on('end', function () {
1617
done();
1718
helper.pg.end();
1819
});
1920

20-
stream.on('error', function () {
21-
throw new Error('Error in copy stream');
22-
});
23-
2421
for (var i = 1; i <= 5; i++) {
2522
var line = ['1\ttest', i, '\tuser', i, '\n'];
2623
stream.write(line.join(''));

0 commit comments

Comments
 (0)