1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-17 17:47:03 +00:00

Wire in retention

- Update README
- Add retention metrics
- Start retention scanner if configured
This commit is contained in:
James Hillyerd
2012-10-26 13:38:59 -07:00
parent 53bcb52e64
commit a4ad7b13cc
8 changed files with 116 additions and 10 deletions

View File

@@ -8,7 +8,7 @@ import (
"time"
)
func TestRetentionScanner(t *testing.T) {
func TestDoRetentionScan(t *testing.T) {
// Create mock objects
mds := &MockDataStore{}
@@ -33,7 +33,7 @@ func TestRetentionScanner(t *testing.T) {
mb3.On("GetMessages").Return([]Message{new3}, nil)
// Test 4 hour retention
retentionScan(mds, 4*time.Hour, 0)
doRetentionScan(mds, 4*time.Hour, 0)
// Check our assertions
mds.AssertExpectations(t)