feat(libreoffice): retry on core dumped (#930)

This commit is contained in:
Julien Neuhart
2024-07-23 14:21:09 +02:00
committed by GitHub
parent 4602332dbb
commit 4e1b347797
5 changed files with 88 additions and 9 deletions

View File

@@ -433,6 +433,13 @@ func TestApi_Pdf(t *testing.T) {
}},
expectError: true,
},
{
scenario: "ErrCoreDumped",
libreOffice: &libreOfficeMock{pdfMock: func(ctx context.Context, logger *zap.Logger, input, outputPath string, options Options) error {
return ErrCoreDumped
}},
expectError: false,
},
} {
t.Run(tc.scenario, func(t *testing.T) {
a := new(Api)