From 50b42f7ecac879e74f0c55168cd8caefb66a6c0b Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Tue, 18 Jun 2013 12:31:52 +0200 Subject: [PATCH] Be more verbose about failures of incorrect copy usage test --- test/integration/client/copy-tests.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration/client/copy-tests.js b/test/integration/client/copy-tests.js index 98318bc5..92e4cb87 100644 --- a/test/integration/client/copy-tests.js +++ b/test/integration/client/copy-tests.js @@ -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);