@@ -86,25 +86,24 @@ func TestMemCache_keyWithDifferentDomainIDs(t *testing.T) {
86
86
tpl .TemplateID = 310
87
87
tpl .FieldCount = 19
88
88
mCache .insert (tpl .TemplateID , ip , tpl , 513 )
89
-
90
- tpl .FieldCount = 21
89
+ tpl .FieldCount = 21
91
90
mCache .insert (tpl .TemplateID , ip , tpl , 514 )
92
91
93
92
v , ok := mCache .retrieve (tpl .TemplateID , ip , 513 )
94
93
95
- if ! ok {
96
- t .Error ("expected mCache retrieve status true, got" , ok )
97
- }
98
- if v .FieldCount != 19 {
99
- t .Error ("expected template id#:310 with Field count#:19, got" , v .TemplateID , v .FieldCount )
100
- }
94
+ if ! ok {
95
+ t .Error ("expected mCache retrieve status true, got" , ok )
96
+ }
97
+ if v .FieldCount != 19 {
98
+ t .Error ("expected template id#:310 with Field count#:19, got" , v .TemplateID , v .FieldCount )
99
+ }
101
100
102
101
v , ok = mCache .retrieve (tpl .TemplateID , ip , 514 )
103
102
104
- if ! ok {
105
- t .Error ("expected mCache retrieve status true, got" , ok )
106
- }
107
- if v .FieldCount != 21 {
108
- t .Error ("expected template id#:310 with Field count#:21, got" , v .TemplateID , v .FieldCount )
109
- }
103
+ if ! ok {
104
+ t .Error ("expected mCache retrieve status true, got" , ok )
105
+ }
106
+ if v .FieldCount != 21 {
107
+ t .Error ("expected template id#:310 with Field count#:21, got" , v .TemplateID , v .FieldCount )
108
+ }
110
109
}
0 commit comments