private/testplanet: Decrease metainfo MaxBuckets test value to speed testing.

TestMaxOutBuckets is one of our slower tests (50-90s).
This change seems to make it 2-12s.

It reduces the number of buckets that need to be created.
It also removes unnecessary storage nodes.

Change-Id: I1012fc6e9258b2f7674b16da4e8b418741c93eea
This commit is contained in:
Bill Thorp 2020-08-26 11:19:09 -04:00 committed by Bill Thorp
parent 4f28bf0720
commit dbb53151f0
2 changed files with 2 additions and 2 deletions

View File

@ -452,7 +452,7 @@ func (planet *Planet) newSatellites(count int, satelliteDatabases satellitedbtes
CacheExpiration: 10 * time.Second,
},
ProjectLimits: metainfo.ProjectLimitConfig{
MaxBuckets: 1000,
MaxBuckets: 10,
DefaultMaxUsage: 25 * memory.GB,
DefaultMaxBandwidth: 25 * memory.GB,
},

View File

@ -37,7 +37,7 @@ import (
func TestMaxOutBuckets(t *testing.T) {
testplanet.Run(t, testplanet.Config{
SatelliteCount: 1, StorageNodeCount: 10, UplinkCount: 1,
SatelliteCount: 1, StorageNodeCount: 0, UplinkCount: 1,
}, func(t *testing.T, ctx *testcontext.Context, planet *testplanet.Planet) {
limit := planet.Satellites[0].Config.Metainfo.ProjectLimits.MaxBuckets
for i := 1; i <= limit; i++ {