Commit 2c10486a authored by Mahmood Ali's avatar Mahmood Ali
Browse files

test with two inputs

parent ec6facdf
Showing with 6 additions and 0 deletions
+6 -0
......@@ -258,6 +258,12 @@ func newTestExecStream(t *testing.T, tty bool, stdin string) *testExecStream {
func newInputStream(tty bool, stdin string) []*drivers.ExecTaskStreamingRequestMsg {
input := []*drivers.ExecTaskStreamingRequestMsg{}
if tty {
// emit two resize to ensure we honor latest
input = append(input, &drivers.ExecTaskStreamingRequestMsg{
TtySize: &dproto.ExecTaskStreamingRequest_TerminalSize{
Height: 50,
Width: 40,
}})
input = append(input, &drivers.ExecTaskStreamingRequestMsg{
TtySize: &dproto.ExecTaskStreamingRequest_TerminalSize{
Height: 100,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment