You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-09 00:22:08 +03:00
Fix test
This commit is contained in:
@@ -22,7 +22,6 @@ describe("publish/subscribe", function () {
|
|||||||
|
|
||||||
pub = redis.createClient.apply(redis.createClient, args);
|
pub = redis.createClient.apply(redis.createClient, args);
|
||||||
sub = redis.createClient.apply(redis.createClient, args);
|
sub = redis.createClient.apply(redis.createClient, args);
|
||||||
pub.once("error", done);
|
|
||||||
pub.once("connect", function () {
|
pub.once("connect", function () {
|
||||||
pub.flushdb(function () {
|
pub.flushdb(function () {
|
||||||
pubConnected = true;
|
pubConnected = true;
|
||||||
@@ -31,8 +30,6 @@ describe("publish/subscribe", function () {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
sub.once("error", done);
|
|
||||||
sub.once("connect", function () {
|
sub.once("connect", function () {
|
||||||
subConnected = true;
|
subConnected = true;
|
||||||
if (pubConnected) {
|
if (pubConnected) {
|
||||||
@@ -48,17 +45,14 @@ describe("publish/subscribe", function () {
|
|||||||
|
|
||||||
pub = redis.createClient();
|
pub = redis.createClient();
|
||||||
sub = redis.createClient({
|
sub = redis.createClient({
|
||||||
disable_resubscribing: false
|
disable_resubscribing: true
|
||||||
});
|
});
|
||||||
pub.once("error", done);
|
|
||||||
pub.once("connect", function () {
|
pub.once("connect", function () {
|
||||||
pubConnected = true;
|
pubConnected = true;
|
||||||
if (subConnected) {
|
if (subConnected) {
|
||||||
done();
|
done();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
sub.once("error", done);
|
|
||||||
sub.once("connect", function () {
|
sub.once("connect", function () {
|
||||||
subConnected = true;
|
subConnected = true;
|
||||||
if (pubConnected) {
|
if (pubConnected) {
|
||||||
|
Reference in New Issue
Block a user