Skip to content

Commit 1b8bd43

Browse files
[webdriver-tests] Disable shm usage for Chrome (#2435)
This appears to workaround failures in go_chrome_test when running in docker locally. The failures appear to stem from Chrome failing to load resources from the network (net::ERR_INSUFFICIENT_RESOURCE), which some googling implies may be caused by trying to use shm and hitting memory limits.
1 parent 8a1c0b3 commit 1b8bd43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webdriver/chrome.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func ChromeWebDriver(port int, options []selenium.ServiceOption) (*selenium.Serv
3434
}
3535

3636
ChromeCapabilities := chrome.Capabilities{
37-
Args: []string{"no-sandbox"},
37+
Args: []string{"no-sandbox", "disable-dev-shm-usage"},
3838
}
3939
chromeAbsPath, err := filepath.Abs(*chromePath)
4040
if err != nil {

0 commit comments

Comments
 (0)