node-mongodb icon indicating copy to clipboard operation
node-mongodb copied to clipboard

Tests fail

Open ThisIsMissEm opened this issue 15 years ago • 0 comments

I'm getting the test on line 95 of tests/test-mongo.js as failing, I've checked what it should be getting against what's in the database, and figured out this patch:

From 95e4938f725f84b17aff40e22ab1f221eb98e147 Mon Sep 17 00:00:00 2001
From: Micheil Smith <[email protected]>
Date: Fri, 5 Feb 2010 20:03:21 +1100
Subject: [PATCH] Fixing broken test (ln 95)

---
 tests/test_mongo.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tests/test_mongo.js b/tests/test_mongo.js
index 2ca0a79..358c73a 100755
--- a/tests/test_mongo.js
+++ b/tests/test_mongo.js
@@ -92,7 +92,7 @@ mongo.addListener("connection", function () {
                 assertEquals(r['baz'], undefined);
             });
             shazbots.sort();
-            assertEquals(shazbots, [0, 1, 2]);
+            assertEquals(shazbots, [0, 1, 2, null, null]);

             widgets.update({ shazbot: 0 }, { shazbot: 420 });

-- 
1.6.5.7

ThisIsMissEm avatar Feb 05 '10 09:02 ThisIsMissEm