mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
client: ExecCreate: rename Tty to TTY
Align with ExecStartOptions Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -20,7 +20,7 @@ func TestExecConsoleSize(t *testing.T) {
|
||||
|
||||
result, err := container.Exec(ctx, apiClient, cID, []string{"stty", "size"},
|
||||
func(ec *client.ExecCreateOptions) {
|
||||
ec.Tty = true
|
||||
ec.TTY = true
|
||||
ec.ConsoleSize = &[2]uint{57, 123}
|
||||
},
|
||||
)
|
||||
|
||||
@@ -127,7 +127,7 @@ func TestExecResize(t *testing.T) {
|
||||
cmd = []string{"sleep", "240"}
|
||||
}
|
||||
res, err := apiClient.ExecCreate(ctx, cID, client.ExecCreateOptions{
|
||||
Tty: true, // Windows requires a TTY for the resize to work, otherwise fails with "is not a tty: failed precondition", see https://github.com/moby/moby/pull/48665#issuecomment-2412530345
|
||||
TTY: true, // Windows requires a TTY for the resize to work, otherwise fails with "is not a tty: failed precondition", see https://github.com/moby/moby/pull/48665#issuecomment-2412530345
|
||||
Cmd: cmd,
|
||||
})
|
||||
assert.NilError(t, err)
|
||||
|
||||
Reference in New Issue
Block a user