Fix flaky Password test by increasing echo mode setup timeout
The beforePasswordSendTimeout was set to 100 microseconds, which is insufficient for huh to disable echo mode on the PTY in slow or constrained environments (e.g. network-isolated build containers). Increase to 100 milliseconds to avoid the race condition.
This commit is contained in:
parent
bd4a06aab7
commit
6d6ea5f371
1 changed files with 1 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ import (
|
|||
// but doesn't mandate that prompts always look exactly the same.
|
||||
func TestAccessiblePrompter(t *testing.T) {
|
||||
|
||||
beforePasswordSendTimeout := 100 * time.Microsecond
|
||||
beforePasswordSendTimeout := 100 * time.Millisecond
|
||||
|
||||
t.Run("Select", func(t *testing.T) {
|
||||
console := newTestVirtualTerminal(t)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue