Disable chrome sandboxing and dev-shm usage in CI environment

This commit is contained in:
jvyden 2021-12-23 00:33:18 -05:00
commit cabe485854
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278
2 changed files with 2 additions and 3 deletions

View file

@ -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.");
}