Skip to content

Commit 4549269

Browse files
committed
chore: use ExpectMatchContext
Signed-off-by: Danny Kopping <danny@coder.com>
1 parent 64dcb02 commit 4549269

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cli/exp_rpty_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,9 @@ func TestExpRpty(t *testing.T) {
133133
assert.NoError(t, err)
134134
})
135135

136-
pty.ExpectMatch(" #")
136+
pty.ExpectMatchContext(ctx, " #")
137137
pty.WriteLine("hostname")
138-
pty.ExpectMatch(ct.Container.Config.Hostname)
138+
pty.ExpectMatchContext(ctx, ct.Container.Config.Hostname)
139139
pty.WriteLine("exit")
140140
<-cmdDone
141141
})

cli/ssh_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2092,9 +2092,9 @@ func TestSSH_Container(t *testing.T) {
20922092
assert.NoError(t, err)
20932093
})
20942094

2095-
ptty.ExpectMatch(" #")
2095+
ptty.ExpectMatchContext(ctx, " #")
20962096
ptty.WriteLine("hostname")
2097-
ptty.ExpectMatch(ct.Container.Config.Hostname)
2097+
ptty.ExpectMatchContext(ctx, ct.Container.Config.Hostname)
20982098
ptty.WriteLine("exit")
20992099
<-cmdDone
21002100
})

0 commit comments

Comments
 (0)