Skip to content

Commit 961dab4

Browse files
.
1 parent e20b499 commit 961dab4

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

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

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -108,26 +108,10 @@ 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)
127111
{
128112
Log.WriteAlert("Test Log", $"Couldn't start {wantedBrowser} instance!");
129113
throw new Exception($"Couldn't start {wantedBrowser} instance!");
130-
}
114+
}
131115

132116
await TryCreatePDF(browser, PuppeteerSharp.Media.PaperFormat.A0);
133117
await TryCreatePDF(browser, PuppeteerSharp.Media.PaperFormat.A1);

0 commit comments

Comments
 (0)