cleanup client test

This commit is contained in:
Mark Cavage 2012-04-17 15:14:06 -07:00
parent 89d3dfc97b
commit 7e49d7720e
1 changed files with 13 additions and 14 deletions

View File

@ -569,6 +569,16 @@ test('abandon (GH-27)', function (t) {
});
test('search timeout (GH-51)', function (t) {
client.timeout = 250;
client.search('dc=timeout', 'objectclass=*', function (err, res) {
t.ifError(err);
res.on('error', function () {
t.end();
});
});
});
test('unbind (GH-30)', function (t) {
client.unbind(function (err) {
t.ifError(err);
@ -577,20 +587,9 @@ test('unbind (GH-30)', function (t) {
});
test('search timeout (GH-51)', function (t) {
client.timeout = 250;
client.search('dc=timeout', 'objectclass=*', function (err, res) {
t.ok(err);
test('shutdown', function (t) {
server.on('close', function () {
t.end();
});
});
test('shutdown', function (t) {
client.unbind(function (err) {
server.on('close', function () {
t.end();
});
server.close();
});
server.close();
});