Merge pull request #376 from strk/master-verbosefailure

Be more verbose about failures of incorrect copy usage test
This commit is contained in:
Brian C 2013-06-18 07:01:24 -07:00
commit a39c0819b1

View File

@ -134,7 +134,7 @@ test("COPY TO incorrect usage with small data", function () {
assert.calls(function (error) {
assert.ok(error, "error should be reported when sending copy to query with query method");
client.query("SELECT 1", assert.calls(function (error, result) {
assert.isNull(error, "incorrect copy usage should not break connection");
assert.isNull(error, "incorrect copy usage should not break connection: " + error);
assert.ok(result, "incorrect copy usage should not break connection");
done();
}));
@ -154,7 +154,7 @@ test("COPY FROM incorrect usage", function () {
assert.calls(function (error) {
assert.ok(error, "error should be reported when sending copy to query with query method");
client.query("SELECT 1", assert.calls(function (error, result) {
assert.isNull(error, "incorrect copy usage should not break connection");
assert.isNull(error, "incorrect copy usage should not break connection: " + error);
assert.ok(result, "incorrect copy usage should not break connection");
done();
pg.end(helper.config);