From dbb53151f0d626e9b6ef8aecb5ddd818e084c7f3 Mon Sep 17 00:00:00 2001 From: Bill Thorp Date: Wed, 26 Aug 2020 11:19:09 -0400 Subject: [PATCH] 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 --- private/testplanet/satellite.go | 2 +- satellite/metainfo/metainfo_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/private/testplanet/satellite.go b/private/testplanet/satellite.go index 1e3381d62..8665cf098 100644 --- a/private/testplanet/satellite.go +++ b/private/testplanet/satellite.go @@ -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, }, diff --git a/satellite/metainfo/metainfo_test.go b/satellite/metainfo/metainfo_test.go index 15f47593d..2564456a3 100644 --- a/satellite/metainfo/metainfo_test.go +++ b/satellite/metainfo/metainfo_test.go @@ -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++ {