|
|
@ -8,7 +8,7 @@ import (
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
type TestStruct struct {
|
|
|
|
type TestStruct struct {
|
|
|
|
Num int
|
|
|
|
Num int
|
|
|
|
Children []*TestStruct
|
|
|
|
Children []*TestStruct
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -522,7 +522,7 @@ func testFillAndSerialize(t *testing.T, tc *Cache) {
|
|
|
|
t.Error("c is not c")
|
|
|
|
t.Error("c is not c")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
<-time.After(5*time.Millisecond)
|
|
|
|
<-time.After(5 * time.Millisecond)
|
|
|
|
_, found = oc.Get("expired")
|
|
|
|
_, found = oc.Get("expired")
|
|
|
|
if found {
|
|
|
|
if found {
|
|
|
|
t.Error("expired was found")
|
|
|
|
t.Error("expired was found")
|
|
|
|