Skip to content

Commit 25f5334

Browse files
committed
removed the test from windows
1 parent ea61493 commit 25f5334

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

cli/cliui/prompt_test.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"io"
77
"os"
88
"os/exec"
9+
"runtime"
910
"testing"
1011

1112
"github.com/stretchr/testify/assert"
@@ -230,6 +231,9 @@ func TestPasswordTerminalState(t *testing.T) {
230231
passwordHelper()
231232
return
232233
}
234+
if runtime.GOOS == "windows" {
235+
t.Skip("Skipping on windows. PTY doesn't read ptty.Write correctly.")
236+
}
233237
t.Parallel()
234238

235239
ptty := ptytest.New(t)
@@ -250,7 +254,8 @@ func TestPasswordTerminalState(t *testing.T) {
250254
ptty.Write('e')
251255
ptty.Write('s')
252256
ptty.Write('t')
253-
ptty.ExpectMatch("****")
257+
ptty.Write('\b')
258+
ptty.ExpectMatch("***")
254259

255260
err = process.Signal(os.Interrupt)
256261
require.NoError(t, err)

0 commit comments

Comments
 (0)