We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9dca1e6 commit 4e1720cCopy full SHA for 4e1720c
test/functional/cluster/ConnectionPool.ts
@@ -0,0 +1,12 @@
1
+import { expect } from "chai";
2
+
3
+import ConnectionPool from "../../../lib/cluster/ConnectionPool";
4
5
+describe("The cluster connection pool", () => {
6
+ describe("when not connected", () => {
7
+ it("does not throw when fetching a sample node", () => {
8
+ expect(new ConnectionPool({}).getSampleInstance("all")).to.be.undefined;
9
+ expect(new ConnectionPool({}).getNodes("all")).to.be.eq([]);
10
+ });
11
12
+});
0 commit comments