mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
disable TestPasswordTerminalState until we can make it run reliably (#2409)
This commit is contained in:
@@ -165,6 +165,9 @@ func newPrompt(ptty *ptytest.PTY, opts cliui.PromptOptions, cmdOpt func(cmd *cob
|
||||
}
|
||||
|
||||
func TestPasswordTerminalState(t *testing.T) {
|
||||
// TODO: fix this test so that it runs reliably
|
||||
t.Skip()
|
||||
|
||||
if os.Getenv("TEST_SUBPROCESS") == "1" {
|
||||
passwordHelper()
|
||||
return
|
||||
@@ -205,6 +208,7 @@ func TestPasswordTerminalState(t *testing.T) {
|
||||
require.True(t, echo, "echo is off after reading password")
|
||||
}
|
||||
|
||||
// nolint:unused
|
||||
func passwordHelper() {
|
||||
cmd := &cobra.Command{
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
|
||||
Reference in New Issue
Block a user