mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
test: Refactor ptytest to use contexts and less duplication (#5740)
This commit is contained in:
+1
-1
@@ -477,7 +477,7 @@ Expire-Date: 0
|
||||
|
||||
// Wait for the prompt or any output really to indicate the command has
|
||||
// started and accepting input on stdin.
|
||||
_ = pty.ReadRune(ctx)
|
||||
_ = pty.Peek(ctx, 1)
|
||||
|
||||
pty.WriteLine("echo hello 'world'")
|
||||
pty.ExpectMatch("hello world")
|
||||
|
||||
Reference in New Issue
Block a user