Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit 25ff12a

Browse files
committed
Remove debug flag from test browser
Resolves #141 (comment)
1 parent b60c4f6 commit 25ff12a

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

tests/test_browser.go

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -231,19 +231,12 @@ type withLaunchOptions = launchOptions
231231
// defaultLaunchOptions returns defaults for browser type launch options.
232232
// TestBrowser uses this for launching a browser type by default.
233233
func defaultLaunchOpts() launchOptions {
234-
var (
235-
debug = false
236-
headless = true
237-
)
238-
if v, found := os.LookupEnv("XK6_BROWSER_TEST_DEBUG"); found {
239-
debug, _ = strconv.ParseBool(v)
240-
}
234+
headless := true
241235
if v, found := os.LookupEnv("XK6_BROWSER_TEST_HEADLESS"); found {
242236
headless, _ = strconv.ParseBool(v)
243237
}
244238

245239
return launchOptions{
246-
Debug: debug,
247240
Headless: headless,
248241
SlowMo: "0s",
249242
Timeout: "30s",

0 commit comments

Comments
 (0)