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:
Pavel Dostál 2026-04-28 18:25:51 +02:00
parent bd4a06aab7
commit 6d6ea5f371

View file

@ -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)