feat(state): improve clean up when LibreOffice and Chromium are restarted

This commit is contained in:
Julien Neuhart
2024-12-25 17:04:25 +01:00
parent 16807bd57f
commit 910eb9b770
6 changed files with 93 additions and 20 deletions

View File

@@ -4,6 +4,7 @@ import (
"fmt"
"os"
"testing"
"time"
"github.com/google/uuid"
"go.uber.org/zap"
@@ -64,7 +65,7 @@ func TestGarbageCollect(t *testing.T) {
}
}()
err := GarbageCollect(zap.NewNop(), tc.rootPath, tc.includeSubstr)
err := GarbageCollect(zap.NewNop(), tc.rootPath, tc.includeSubstr, time.Now())
if !tc.expectError && err != nil {
t.Fatalf("expected no error but got: %v", err)