File tree Expand file tree Collapse file tree 2 files changed +8
-9
lines changed
plugins/cmabcache/services Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -397,11 +397,11 @@ var doOnce sync.Once // required since we only need to read datafile once
397397
398398type 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
407407func (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-
Original file line number Diff line number Diff 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
109109func (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
You can’t perform that action at this time.
0 commit comments