Skip to content

Commit 2268e7a

Browse files
committed
test(sessions): call done after graceful client close
1 parent 67fa511 commit 2268e7a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/unit/sessions/client_tests.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ describe('Sessions', function() {
3232
client.startSession();
3333
}).to.throw(/Current topology does not support sessions/);
3434

35-
client.close();
36-
done();
35+
client.close(done);
3736
});
3837
}
3938
});
@@ -62,8 +61,7 @@ describe('Sessions', function() {
6261
expect(session).to.exist;
6362

6463
session.endSession({ skipCommand: true });
65-
client.close();
66-
done();
64+
client.close(done);
6765
});
6866
}
6967
});

0 commit comments

Comments
 (0)