From 827d32ec47f7a2b464a95489180faeacb119622e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Drouyer?= Date: Sat, 3 Nov 2012 13:42:40 +0100 Subject: [PATCH] fixed issue for sqlite --- test/common_test.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/common_test.js b/test/common_test.js index 33015f2d..6f759aa2 100644 --- a/test/common_test.js +++ b/test/common_test.js @@ -463,8 +463,7 @@ function testOrm(schema) { test.equal(data.length, data2.length, 'Posts should be the same, since we are loading on the same object.'); test.equal(nbInitialRequests, nbSchemaRequests, 'There should not be any request because value is cached.'); - user.posts({where: {id: 12}}, function(err, data) { - console.log('data', data); + user.posts({where: {id: data[0].id}}, function(err, data) { test.equal(data.length, 1, 'There should be only one post.'); test.equal(nbInitialRequests + 1, nbSchemaRequests, 'There should be one additional request since we added conditions.');