private/testplanet: add STORJ_TEST_DISABLEQUIC environment flag

Currently Windows seems to dislike creating udp servers in a very
fast fashion. Add an environment flag that allows to disable quic,
which is the main culprit.

Individual tests can still override that setting.

Change-Id: I3b30c4aa7fcb148b2894335394fdfae6eaa372bb
This commit is contained in:
Egon Elbre 2023-10-31 15:23:34 +02:00
parent b3e908f72f
commit 38ad5a1318
2 changed files with 8 additions and 0 deletions

View File

@ -464,6 +464,10 @@ func (planet *Planet) newSatellite(ctx context.Context, prefix string, index int
config.Console.StaticDir = filepath.Join(developmentRoot, "web/satellite")
config.Payments.Storjscan.DisableLoop = true
if os.Getenv("STORJ_TEST_DISABLEQUIC") != "" {
config.Server.DisableQUIC = true
}
if planet.config.Reconfigure.Satellite != nil {
planet.config.Reconfigure.Satellite(log, index, &config)
}

View File

@ -217,6 +217,10 @@ func (planet *Planet) newStorageNode(ctx context.Context, prefix string, index,
},
}
if os.Getenv("STORJ_TEST_DISABLEQUIC") != "" {
config.Server.DisableQUIC = true
}
// enable the lazy filewalker
config.Pieces.EnableLazyFilewalker = true