Skip to content

Commit 1f16923

Browse files
committed
Apply linter formatting fixes
1 parent 4741e7a commit 1f16923

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

pkg/optimizely/cache_test.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -397,11 +397,11 @@ var doOnce sync.Once // required since we only need to read datafile once
397397

398398
type DefaultLoaderTestSuite struct {
399399
suite.Suite
400-
registry *MetricsRegistry
401-
bp *event.BatchEventProcessor
400+
registry *MetricsRegistry
401+
bp *event.BatchEventProcessor
402402
upsMap, odpCacheMap, cmabCacheMap cmap.ConcurrentMap
403-
bpFactory func(options ...event.BPOptionConfig) *event.BatchEventProcessor
404-
pcFactory func(sdkKey string, options ...sdkconfig.OptionFunc) SyncedConfigManager
403+
bpFactory func(options ...event.BPOptionConfig) *event.BatchEventProcessor
404+
pcFactory func(sdkKey string, options ...sdkconfig.OptionFunc) SyncedConfigManager
405405
}
406406

407407
func (s *DefaultLoaderTestSuite) SetupTest() {
@@ -1035,4 +1035,3 @@ func (suite *CacheTestSuite) TestCMABRedisCacheCreator() {
10351035
suite.Equal(2, redisCache.Database)
10361036
suite.Equal(300*time.Second, redisCache.Timeout.Duration)
10371037
}
1038-

plugins/cmabcache/services/in_memory_cache_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ func (im *InMemoryCacheTestSuite) TestSaveInitializesCacheAndSaves() {
4848

4949
// Test with CMAB decision object
5050
decision := map[string]interface{}{
51-
"variationID": "variation_1",
51+
"variationID": "variation_1",
5252
"attributesHash": "hash123",
53-
"cmabUUID": "uuid-456",
53+
"cmabUUID": "uuid-456",
5454
}
5555

5656
im.cache.Save("user123:exp456", decision)
@@ -108,11 +108,11 @@ func (im *InMemoryCacheTestSuite) TestResetAfterSave() {
108108

109109
func (im *InMemoryCacheTestSuite) TestMultipleDecisions() {
110110
decision1 := map[string]interface{}{
111-
"variationID": "var1",
111+
"variationID": "var1",
112112
"attributesHash": "hash1",
113113
}
114114
decision2 := map[string]interface{}{
115-
"variationID": "var2",
115+
"variationID": "var2",
116116
"attributesHash": "hash2",
117117
}
118118

0 commit comments

Comments
 (0)