-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Labels
Description
Description
- test was added on 10bf91a / fix: cli prompt termination exit code #4888
This test looks to be flaky on macOS at least; seen it fail a couple of times.
ok github.com/docker/cli/cli 0.242s coverage: 28.2% of statements
--- FAIL: TestPromptForConfirmation (0.38s)
--- FAIL: TestPromptForConfirmation/case=reader_closed (0.19s)
utils_test.go:222: PromptForConfirmation did not return after promptReader was closed
FAIL
panic: send on closed channel
goroutine 111 [running]:
github.com/docker/cli/cli/command_test.TestPromptForConfirmation.func8.2()
/Users/runner/work/cli/cli/src/github.com/docker/cli/cli/command/utils_test.go:209 +0x6d
created by github.com/docker/cli/cli/command_test.TestPromptForConfirmation.func8 in goroutine 110
/Users/runner/work/cli/cli/src/github.com/docker/cli/cli/command/utils_test.go:207 +0x3aa
Benehiko