Skip to content

Commit 113b26a

Browse files
committed
Use a bigger pool of nodes
1 parent 7ec53a8 commit 113b26a

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/Tests/Tests/ClientConcepts/ConnectionPooling/BuildingBlocks/ConnectionPooling.doc.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -222,14 +222,7 @@ [U] public void RandomizedInitialNodes()
222222
IEnumerable<StaticConnectionPool> CreatStaticConnectionPools()
223223
{
224224
Thread.Sleep(1);
225-
226-
var uris = new[]
227-
{
228-
new Uri("https://10.0.0.1:9200/"),
229-
new Uri("https://10.0.0.2:9200/"),
230-
new Uri("https://10.0.0.3:9200/")
231-
};
232-
225+
var uris = Enumerable.Range(1, 50).Select(i => new Uri($"https://10.0.0.{i}:9200/"));
233226
yield return new StaticConnectionPool(uris);
234227
}
235228

0 commit comments

Comments
 (0)