Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Nomad
Commits
2c10486a
Commit
2c10486a
authored
6 years ago
by
Mahmood Ali
Browse files
Options
Download
Email Patches
Plain Diff
test with two inputs
parent
ec6facdf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
plugins/drivers/testutils/exec_testing.go
+6
-0
plugins/drivers/testutils/exec_testing.go
with
6 additions
and
0 deletions
+6
-0
plugins/drivers/testutils/exec_testing.go
+
6
-
0
View file @
2c10486a
...
...
@@ -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
,
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment