File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -190,8 +190,8 @@ func testAdd(t *testing.T, newCache cacheFactory) {
190
190
}
191
191
192
192
// Wait for it to expire, and add again.
193
- time .Sleep (6 * time .Second )
194
- if err = cache .Add ("int" , 3 , time .Second * 3 ); err != nil {
193
+ time .Sleep (8 * time .Second )
194
+ if err = cache .Add ("int" , 3 , time .Second * 5 ); err != nil {
195
195
t .Errorf ("Unexpected error adding to cache: %s" , err )
196
196
}
197
197
@@ -217,7 +217,7 @@ func testGetMulti(t *testing.T, newCache cacheFactory) {
217
217
var keys []string
218
218
for key , value := range m {
219
219
keys = append (keys , key )
220
- if err := cache .Set (key , value , time .Second * 3 ); err != nil {
220
+ if err := cache .Set (key , value , time .Second * 10 ); err != nil {
221
221
t .Errorf ("Error setting a value: %s" , err )
222
222
}
223
223
}
You can’t perform that action at this time.
0 commit comments