Skip to content

Commit e26bd0b

Browse files
committed
make cluster info api tests resilliant to other tests adding remote configuration as well
1 parent 766c294 commit e26bd0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Tests/Tests/Cluster/RemoteInfo/RemoteInfoApiTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,12 @@ protected override void ExpectResponse(IRemoteInfoResponse response)
7878
{
7979
response.Remotes.Should()
8080
.NotBeEmpty()
81-
.And.HaveCount(2)
8281
.And.ContainKey("cluster_one")
8382
.And.ContainKey("cluster_two");
8483

85-
foreach (var remote in response.Remotes.Values)
84+
foreach (var (name, remote) in response.Remotes)
8685
{
86+
if (!name.StartsWith("cluster_")) continue;
8787
remote.Connected.Should().BeTrue();
8888
remote.HttpAddresses.Should().NotBeNullOrEmpty();
8989
remote.Seeds.Should().NotBeNullOrEmpty();

0 commit comments

Comments
 (0)