File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
roles/tests-unit/files/FWO.Test Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff 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!") ;
You can’t perform that action at this time.
0 commit comments