From 6640271f5322313b50392c1d7ea7eea5e04a4d20 Mon Sep 17 00:00:00 2001 From: bmc Date: Sun, 9 Sep 2012 20:53:12 -0500 Subject: [PATCH] add failing test for #183 --- test/integration/client/simple-query-tests.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/integration/client/simple-query-tests.js b/test/integration/client/simple-query-tests.js index 2edabd73..2e779109 100644 --- a/test/integration/client/simple-query-tests.js +++ b/test/integration/client/simple-query-tests.js @@ -9,15 +9,16 @@ test("simple query interface", function() { client.on('drain', client.end.bind(client)); var rows = []; - query.on('row', function(row) { - rows.push(row['name']) + query.on('row', function(row, result) { + assert.ok(result); + rows.push(row['name']); }); query.once('row', function(row) { test('Can iterate through columns', function () { var columnCount = 0; for (column in row) { columnCount++; - }; + } if ('length' in row) { assert.lengthIs(row, columnCount, 'Iterating through the columns gives a different length from calling .length.'); }