Skip to content

Commit b7496a7

Browse files
committed
Use a bigger pool of nodes
1 parent efaae4e commit b7496a7

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
@@ -220,14 +220,7 @@ [U] public void RandomizedInitialNodes()
220220
IEnumerable<StaticConnectionPool> CreatStaticConnectionPools()
221221
{
222222
Thread.Sleep(1);
223-
224-
var uris = new[]
225-
{
226-
new Uri("https://10.0.0.1:9200/"),
227-
new Uri("https://10.0.0.2:9200/"),
228-
new Uri("https://10.0.0.3:9200/")
229-
};
230-
223+
var uris = Enumerable.Range(1, 50).Select(i => new Uri($"https://10.0.0.{i}:9200/"));
231224
yield return new StaticConnectionPool(uris);
232225
}
233226

0 commit comments

Comments
 (0)