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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user