Skip to content

Commit

Permalink
Avoid ambiguity
Browse files Browse the repository at this point in the history
  • Loading branch information
stevejgordon committed Nov 25, 2024
1 parent a7017df commit 2533efb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ public class StaticNodePoolTests
[Fact]
public void MultipleRequests_WhenOnlyASingleEndpointIsConfigured_AndTheEndpointIsUnavailable_DoNotThrowAnException()
{
var pool = new StaticNodePool([new Uri("http://localhost:9200")]);
Node[] nodes = [new Uri("http://localhost:9200")];
var pool = new StaticNodePool(nodes);
var transport = new DistributedTransport(new TransportConfiguration(pool));

var response = transport.Request<StringResponse>(HttpMethod.GET, "/", null, null);
Expand Down

0 comments on commit 2533efb

Please sign in to comment.