Skip to content

Commit e6e77ae

Browse files
committed
fixup post review
1 parent f036ae2 commit e6e77ae

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

tests/functional/client/testClientConnections.js

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -113,40 +113,37 @@ describe('Client connections', async function test() {
113113
}
114114
assert.strictEqual(res, 'OK');
115115

116-
return async.race([
116+
async.race([
117117
cb => {
118118
setTimeout(() => {
119119
this.loadgen.emit('finished');
120120
cb();
121-
}, 3000);
122-
return undefined;
121+
}, 5000);
123122
},
124123
cb => {
125124
async.times(
126125
100,
127126
(n, next) => makeRequest(this, next),
128127
err => {
129-
if (err) {return cb(err);}
128+
if (err) { return cb(err); }
130129
this.loadgen.emit('finished');
131130
return cb();
132131
},
133132
);
134-
return undefined;
135133
},
136134
]);
137135
});
138136

139-
// Add return statement here
140-
return sentinelSub.on('message', (chan, message) => {
137+
sentinelSub.on('message', (chan, message) => {
141138
assert.strictEqual(chan, '+slave');
142139
const data = message.split(' ');
143140
const [oldPort, newPort] = [data[3], data[7]];
144141
assert.notStrictEqual(oldPort, newPort);
145142

146-
return this.loadgen.on('finished', () => {
143+
this.loadgen.on('finished', () => {
147144
assert(this.requestsDuringFailover > 1);
148145
return done();
149146
});
150147
});
151148
});
152-
});
149+
});

0 commit comments

Comments
 (0)