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

storage: resolve linter errors (#432)

Signed-off-by: James Hillyerd <james@hillyerd.com>
This commit is contained in:
James Hillyerd
2023-11-13 11:22:49 -08:00
committed by GitHub
parent 1ce1674861
commit e22ed26633
2 changed files with 13 additions and 8 deletions

View File

@@ -23,12 +23,12 @@ func TestDoRetentionScan(t *testing.T) {
old1 := stubMessage("mb1", 4)
old2 := stubMessage("mb1", 12)
old3 := stubMessage("mb2", 24)
ds.AddMessage(new1)
ds.AddMessage(old1)
ds.AddMessage(old2)
ds.AddMessage(old3)
ds.AddMessage(new2)
ds.AddMessage(new3)
_, _ = ds.AddMessage(new1)
_, _ = ds.AddMessage(old1)
_, _ = ds.AddMessage(old2)
_, _ = ds.AddMessage(old3)
_, _ = ds.AddMessage(new2)
_, _ = ds.AddMessage(new3)
// Test 4 hour retention
cfg := config.Storage{