mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-09-01 23:27:02 +00:00
Disable chrome sandboxing and dev-shm usage in CI environment
This commit is contained in:
parent
f36038910a
commit
cabe485854
2 changed files with 2 additions and 3 deletions
|
@ -34,6 +34,8 @@ namespace ProjectLighthouse.Tests.WebsiteTests
|
|||
if (Convert.ToBoolean(Environment.GetEnvironmentVariable("CI") ?? "false"))
|
||||
{
|
||||
chromeOptions.AddArgument("headless");
|
||||
chromeOptions.AddArgument("no-sandbox");
|
||||
chromeOptions.AddArgument("disable-dev-shm-usage");
|
||||
Console.WriteLine("We are in a CI environment, so chrome headless mode has been enabled.");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue