Skip to content

Commit

Permalink
addloopback test
Browse files Browse the repository at this point in the history
  • Loading branch information
vazois committed Mar 11, 2025
1 parent a877199 commit 3713e9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/Garnet.test/GarnetServerConfigTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -640,9 +640,9 @@ public async Task MultiEndpointTest()
TestUtils.DeleteDirectory(TestUtils.MethodTestDir, wait: true);
var hostname = TestUtils.GetHostName();
var addresses = Dns.GetHostAddresses(hostname);
addresses = [.. addresses, IPAddress.IPv6Loopback, IPAddress.Loopback];

var endpoints = addresses.Select(address => new IPEndPoint(address, TestUtils.TestPort)).ToArray();
ClassicAssert.Greater(endpoints.Length, 1, $"{nameof(MultiEndpointTest)} not enough network interfaces!");
var server = TestUtils.CreateGarnetServer(TestUtils.MethodTestDir, endpoints: endpoints);
server.Start();

Expand Down

0 comments on commit 3713e9e

Please sign in to comment.