fix(memory): fix possible memory leak and add better tests

This commit is contained in:
Antoine Aflalo
2025-02-13 20:02:45 -05:00
parent 25cd4585b7
commit efe1696bfa
4 changed files with 47 additions and 20 deletions

View File

@@ -41,7 +41,7 @@ func TestConvertCbzCommand(t *testing.T) {
defer errs.CaptureGeneric(&err, os.RemoveAll, tempDir, "failed to remove temporary directory")
// Locate the testdata directory
testdataDir := filepath.Join("../testdata")
testdataDir := filepath.Join("../../../testdata")
if _, err := os.Stat(testdataDir); os.IsNotExist(err) {
t.Fatalf("testdata directory not found")
}