Skip to content

Commit

Permalink
tests: minor fix for a test
Browse files Browse the repository at this point in the history
  • Loading branch information
lni committed Jun 20, 2022
1 parent fa9e893 commit 7bdbb5a
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions nodehost_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -800,14 +800,18 @@ func TestGossip(t *testing.T) {
}

func TestMediumSizedClusterGossip(t *testing.T) {
if os.Getenv("LONG_TEST") == "" {
t.Skip("Skipping long test")
}
defer leaktest.AfterTest(t)()
for i := 0; i < 48; i++ {
for i := 0; i < 16; i++ {
fs := vfs.GetTestFS()
dir := fs.PathJoin(singleNodeHostTestDir, fmt.Sprintf("nh%d", i))
cfg := config.NodeHostConfig{
NodeHostDir: dir,
RTTMillisecond: getRTTMillisecond(fs, dir),
RaftAddress: fmt.Sprintf("127.0.0.1:%d", 25000+i*10),
NodeHostDir: dir,
RTTMillisecond: getRTTMillisecond(fs, dir),
RaftAddress: fmt.Sprintf("127.0.0.1:%d", 25000+i*10),
AddressByNodeHostID: true,
Expert: config.ExpertConfig{
FS: fs,
TestGossipProbeInterval: 50 * time.Millisecond,
Expand Down

0 comments on commit 7bdbb5a

Please sign in to comment.