1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-07 13:22:56 +03:00

Move requiring util to a separate file

This commit is contained in:
Pieter Noordhuis
2010-11-30 22:18:33 +01:00
parent 12d2aebb70
commit 88711fe4fe
3 changed files with 9 additions and 15 deletions

View File

@@ -4,19 +4,13 @@ var redis = require("./index"),
client2 = redis.createClient(),
client3 = redis.createClient(),
assert = require("assert"),
util,
util = require("./lib/util").util,
test_db_num = 15, // this DB will be flushed and used for testing
tests = {},
connected = false,
ended = false,
server_info;
try {
util = require("util");
} catch (err) {
util = require("sys");
}
// Uncomment this to see the wire protocol and other debugging info
//redis.debug_mode = true;