Skip to content

Commit 6d6ea5f

Browse files
committed
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.
1 parent bd4a06a commit 6d6ea5f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/prompter/accessible_prompter_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import (
3434
// but doesn't mandate that prompts always look exactly the same.
3535
func TestAccessiblePrompter(t *testing.T) {
3636

37-
beforePasswordSendTimeout := 100 * time.Microsecond
37+
beforePasswordSendTimeout := 100 * time.Millisecond
3838

3939
t.Run("Select", func(t *testing.T) {
4040
console := newTestVirtualTerminal(t)

0 commit comments

Comments
 (0)