Skip to content

Commit a39c081

Browse files
committed
Merge pull request #376 from strk/master-verbosefailure
Be more verbose about failures of incorrect copy usage test
2 parents f91120b + 50b42f7 commit a39c081

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: test/integration/client/copy-tests.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ test("COPY TO incorrect usage with small data", function () {
134134
assert.calls(function (error) {
135135
assert.ok(error, "error should be reported when sending copy to query with query method");
136136
client.query("SELECT 1", assert.calls(function (error, result) {
137-
assert.isNull(error, "incorrect copy usage should not break connection");
137+
assert.isNull(error, "incorrect copy usage should not break connection: " + error);
138138
assert.ok(result, "incorrect copy usage should not break connection");
139139
done();
140140
}));
@@ -154,7 +154,7 @@ test("COPY FROM incorrect usage", function () {
154154
assert.calls(function (error) {
155155
assert.ok(error, "error should be reported when sending copy to query with query method");
156156
client.query("SELECT 1", assert.calls(function (error, result) {
157-
assert.isNull(error, "incorrect copy usage should not break connection");
157+
assert.isNull(error, "incorrect copy usage should not break connection: " + error);
158158
assert.ok(result, "incorrect copy usage should not break connection");
159159
done();
160160
pg.end(helper.config);

0 commit comments

Comments
 (0)