Skip to content

Commit 6640271

Browse files
committed
add failing test for brianc#183
1 parent ba733f5 commit 6640271

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/integration/client/simple-query-tests.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,16 @@ test("simple query interface", function() {
99
client.on('drain', client.end.bind(client));
1010

1111
var rows = [];
12-
query.on('row', function(row) {
13-
rows.push(row['name'])
12+
query.on('row', function(row, result) {
13+
assert.ok(result);
14+
rows.push(row['name']);
1415
});
1516
query.once('row', function(row) {
1617
test('Can iterate through columns', function () {
1718
var columnCount = 0;
1819
for (column in row) {
1920
columnCount++;
20-
};
21+
}
2122
if ('length' in row) {
2223
assert.lengthIs(row, columnCount, 'Iterating through the columns gives a different length from calling .length.');
2324
}

0 commit comments

Comments
 (0)