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:
parent
b3e908f72f
commit
38ad5a1318
@ -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)
|
||||
}
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user