Add chunk persistence tests, fix storage tests.

Change-Id: Id0b8f5382e99efa839cc0f826e92bbda985fe9a9
This commit is contained in:
Julius Volz 2014-08-13 17:13:28 +02:00 committed by Bjoern Rabenstein
parent ecdf5ab14f
commit 3b25867d61
2 changed files with 86 additions and 12 deletions

View file

@ -24,9 +24,11 @@ func NewTestStorage(t testing.TB) (Storage, test.Closer) {
t.Fatal("Error opening disk persistence: ", err)
}
o := &MemorySeriesStorageOptions{
Persistence: persistence,
MemoryEvictionInterval: time.Minute,
MemoryRetentionPeriod: time.Hour,
Persistence: persistence,
MemoryEvictionInterval: time.Minute,
MemoryRetentionPeriod: time.Hour,
PersistencePurgeInterval: time.Hour,
PersistenceRetentionPeriod: 24 * 7 * time.Hour,
}
storage, err := NewMemorySeriesStorage(o)
if err != nil {