Skip to content

Commit e358996

Browse files
[~] Puppeteer arguments test
1 parent 54e46ef commit e358996

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

roles/lib/files/FWO.Report/ReportBase.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,8 @@ public static string ToUtcString(string? timestring)
264264
using IBrowser? browser = await Puppeteer.LaunchAsync(new LaunchOptions
265265
{
266266
ExecutablePath = installedBrowser.GetExecutablePath(),
267-
Headless = true
267+
Headless = true,
268+
Args = new[] {"--no-zygote"}
268269
});
269270

270271
try

roles/tests-unit/files/FWO.Test/HtmlToPdfTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public async Task GeneratePdf()
7676
Headless = true,
7777
DumpIO = isGitHubActions != null ? true : false, // Enables debug logs
7878
Args = isGitHubActions != null ?
79-
new[] { "--database=/tmp", "--no-sandbox", "--read-only" }
79+
new[] { "--database=/tmp", "--no-sandbox", "--no-zygote" }
8080
: [] // No additional arguments locally
8181
});
8282

0 commit comments

Comments
 (0)