Skip to content

Commit 42fa37d

Browse files
.
1 parent bb74a59 commit 42fa37d

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,22 @@ public async Task GeneratePdf()
108108
});
109109
}
110110
catch(Exception)
111+
{
112+
Log.WriteAlert("Test Log", $"Couldn't start {wantedBrowser} instance! Trying symlink path: {GlobalConst.ChromeBinPathLinux}");
113+
//throw new Exception($"Couldn't start {wantedBrowser} instance!");
114+
}
115+
116+
try
117+
{
118+
browser = await Puppeteer.LaunchAsync(new LaunchOptions
119+
{
120+
ExecutablePath = GlobalConst.ChromeBinPathLinux,
121+
Headless = true,
122+
DumpIO = isGitHubActions,
123+
Args = isGitHubActions ? ["--database=/tmp", "--no-sandbox"] : []
124+
});
125+
}
126+
catch(Exception)
111127
{
112128
Log.WriteAlert("Test Log", $"Couldn't start {wantedBrowser} instance!");
113129
throw new Exception($"Couldn't start {wantedBrowser} instance!");

0 commit comments

Comments
 (0)