Permalink
Browse files

Minor fixes to make test pass

  • Loading branch information...
1 parent 451f8f0 commit 53a6af0643d9e0493018035b5e8bedf007bcb17b @christkv committed Apr 1, 2012
@@ -972,3 +972,6 @@ ReplSet.prototype.close = function(callback) {
}
}
}
+
+// Backward compatibility
+exports.ReplSetServers = ReplSet;
View
@@ -78,7 +78,7 @@ exports.pure = function() {
});
// backwards compat
- exports.ReplSetServers = exports.ReplSet;
+ classes.ReplSetServers = exports.ReplSet;
// Add BSON Classes
classes.Binary = require('bson').Binary;
@@ -140,6 +140,9 @@ exports.native = function() {
classes.Symbol = require('bson').Symbol;
classes.Timestamp = require('bson').Timestamp;
+ // backwards compat
+ classes.ReplSetServers = exports.ReplSet;
+
// Add BSON Parser
classes.BSON = require('bson').BSONNative.BSON;
@@ -27,6 +27,8 @@ var http = require('http'),
db.collection('stats', function(statsErr, stats) {
if (statsErr) return console.log('error opening stats %o', err);
+ stats.remove();
+ stats.insert({reqcount:0})
//create server
http.createServer(function (req, res) {

0 comments on commit 53a6af0

Please sign in to comment.