File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed
tests-unit/files/FWO.Test Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -250,11 +250,10 @@ public static string ToUtcString(string? timestring)
250250 }
251251
252252 InstalledBrowser ? brw = browserFetcher . GetInstalledBrowsers ( ) . FirstOrDefault ( ) ?? await browserFetcher . DownloadAsync ( BrowserTag . Latest ) ;
253-
254- var isGitHubActions = Environment . GetEnvironmentVariable ( "GITHUB_ACTIONS" ) == "true" ;
253+
255254 using IBrowser ? browser = await Puppeteer . LaunchAsync ( new LaunchOptions
256255 {
257- ExecutablePath = isGitHubActions ? "/usr/bin/chromium-browser" : brw . GetExecutablePath ( ) ,
256+ ExecutablePath = brw . GetExecutablePath ( ) ,
258257 Headless = true
259258 } ) ;
260259
Original file line number Diff line number Diff line change @@ -47,16 +47,12 @@ public async Task GeneratePdf()
4747 break ;
4848 }
4949
50- InstalledBrowser ? brw = await browserFetcher . DownloadAsync ( BrowserTag . Stable ) ;
50+ InstalledBrowser ? brw = browserFetcher . GetInstalledBrowsers ( ) . FirstOrDefault ( ) ?? await browserFetcher . DownloadAsync ( BrowserTag . Latest ) ;
5151
5252 using IBrowser ? browser = await Puppeteer . LaunchAsync ( new LaunchOptions
5353 {
5454 ExecutablePath = brw . GetExecutablePath ( ) ,
55- Headless = true ,
56- DumpIO = isGitHubActions != null ? true : false , // Enables debug logs
57- Args = isGitHubActions != null ?
58- new [ ] { "--database=/tmp" }
59- : [ ] // No additional arguments locally
55+ Headless = true
6056 } ) ;
6157
6258 try
You can’t perform that action at this time.
0 commit comments