diff --git a/pkg/cmab/config.go b/pkg/cmab/config.go index ab4c8830..9118b380 100644 --- a/pkg/cmab/config.go +++ b/pkg/cmab/config.go @@ -24,8 +24,9 @@ import ( ) const ( - // DefaultCacheSize is the default size for CMAB cache - DefaultCacheSize = 1000 + // DefaultCacheSize is the default size for CMAB cache (aligned with ODP segments cache) + DefaultCacheSize = 10000 + // DefaultCacheTTL is the default TTL for CMAB cache (30 minutes to match agent) DefaultCacheTTL = 30 * time.Minute diff --git a/pkg/cmab/config_test.go b/pkg/cmab/config_test.go index 756e2fc7..16d28e63 100644 --- a/pkg/cmab/config_test.go +++ b/pkg/cmab/config_test.go @@ -18,7 +18,6 @@ package cmab import ( "testing" - "time" "github.com/stretchr/testify/assert" ) @@ -33,9 +32,3 @@ func TestNewDefaultConfig(t *testing.T) { assert.Equal(t, DefaultMaxRetries, config.RetryConfig.MaxRetries) assert.Nil(t, config.Cache) // Should be nil by default } - -func TestDefaultConstants(t *testing.T) { - assert.Equal(t, 1000, DefaultCacheSize) - assert.Equal(t, 30*time.Minute, DefaultCacheTTL) - assert.Equal(t, 10*time.Second, DefaultHTTPTimeout) -}