diff --git a/chromedp_test.go b/chromedp_test.go index 76e9877..8db5965 100644 --- a/chromedp_test.go +++ b/chromedp_test.go @@ -17,6 +17,7 @@ var ( NoFirstRun, NoDefaultBrowserCheck, Headless, + DisableGPU, } ) @@ -59,10 +60,6 @@ func TestMain(m *testing.M) { if noSandbox := os.Getenv("CHROMEDP_NO_SANDBOX"); noSandbox != "false" { allocOpts = append(allocOpts, NoSandbox) } - // must be explicitly set, as disabling gpu slows unit tests - if disableGPU := os.Getenv("CHROMEDP_DISABLE_GPU"); disableGPU != "" && disableGPU != "false" { - allocOpts = append(allocOpts, DisableGPU) - } ctx, cancel := NewAllocator(context.Background(), WithExecAllocator(allocOpts...)) allocCtx = ctx