From ef93cddf45e443e0a3ba54d0ee6fcf1a460359d3 Mon Sep 17 00:00:00 2001 From: Anatoliy Chakkaev Date: Mon, 1 Oct 2012 12:20:55 +0400 Subject: [PATCH] Fix memory adapter tests --- test/common_test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/common_test.js b/test/common_test.js index f250e6d1..41b9d03a 100644 --- a/test/common_test.js +++ b/test/common_test.js @@ -504,7 +504,7 @@ function testOrm(schema) { { title: 'Title A', subject: "A" }, { title: 'Title B', subject: "A" }, { title: 'Title C', subject: "D" }]; - var isRedis = Post.schema.name === 'redis' || Post.schema.name === 'memory'; + var isRedis = Post.schema.name === 'redis'; var dates = isRedis ? [ 5, 9, 0, 17, 10, 9 ] : [ new Date(1000 * 5 ), new Date(1000 * 9), @@ -569,6 +569,7 @@ function testOrm(schema) { tests += 1; Post.all({where: {date: new Date(1000 * 9)}, order: 'title', limit: 3}, function (err, posts) { if (err) console.log(err); + console.log(posts.length); test.equal(posts.length, 2, 'Exactly 2 posts returned by query'); [ 'Title C', 'Title Z' ].forEach(function (t, i) { if (posts[i]) {