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:
parent
4f28bf0720
commit
dbb53151f0
@ -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,
|
||||
},
|
||||
|
@ -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++ {
|
||||
|
Loading…
Reference in New Issue
Block a user