Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup! test: Refactor ptytest to use contexts and less duplication
  • Loading branch information
mafredri committed Jan 17, 2023
commit 53ccefc0ebfb79845ec27b94dcd0ea59b48feaca
2 changes: 2 additions & 0 deletions pty/ptytest/ptytest.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ func (p *PTY) Close() error {
}

func (p *PTY) ExpectMatch(str string) string {
p.t.Helper()

timeout, cancel := context.WithTimeout(context.Background(), testutil.WaitMedium)
defer cancel()

Expand Down