Skip to content

Commit dc273f8

Browse files
codesomegouthamve
authored andcommitted
Replace interface names with local ip in distributor tests. (#1915)
Hardcoding interface names cause the tests to fail on systems that have interface names different than the ones hardcoded. Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
1 parent cd4009e commit dc273f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/distributor/distributor_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@ func prepare(t *testing.T, numIngesters, happyIngesters int, queryDelay time.Dur
754754
cfg.DistributorRing.HeartbeatPeriod = 100 * time.Millisecond
755755
cfg.DistributorRing.InstanceID = strconv.Itoa(rand.Int())
756756
cfg.DistributorRing.KVStore.Mock = kvStore
757-
cfg.DistributorRing.InstanceInterfaceNames = []string{"eth0", "en0", "lo0"}
757+
cfg.DistributorRing.InstanceAddr = "127.0.0.1"
758758

759759
overrides, err := validation.NewOverrides(*limits)
760760
require.NoError(t, err)

0 commit comments

Comments
 (0)