We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea61493 commit 25f5334Copy full SHA for 25f5334
cli/cliui/prompt_test.go
@@ -6,6 +6,7 @@ import (
6
"io"
7
"os"
8
"os/exec"
9
+ "runtime"
10
"testing"
11
12
"github.com/stretchr/testify/assert"
@@ -230,6 +231,9 @@ func TestPasswordTerminalState(t *testing.T) {
230
231
passwordHelper()
232
return
233
}
234
+ if runtime.GOOS == "windows" {
235
+ t.Skip("Skipping on windows. PTY doesn't read ptty.Write correctly.")
236
+ }
237
t.Parallel()
238
239
ptty := ptytest.New(t)
@@ -250,7 +254,8 @@ func TestPasswordTerminalState(t *testing.T) {
250
254
ptty.Write('e')
251
255
ptty.Write('s')
252
256
ptty.Write('t')
253
- ptty.ExpectMatch("****")
257
+ ptty.Write('\b')
258
+ ptty.ExpectMatch("***")
259
260
err = process.Signal(os.Interrupt)
261
require.NoError(t, err)
0 commit comments