Skip to content

Commit d4402fd

Browse files
committed
Start comment and fmt
Signed-off-by: Spike Curtis <[email protected]>
1 parent 945124c commit d4402fd

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

client.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ type Command struct {
3838
WorkingDir string
3939
}
4040

41+
// Start runs the command on the remote. Once a command is started, callers should
42+
// not read from, write to, or close the websocket. Closing the returned Process will
43+
// also close the websocket.
4144
func (r remoteExec) Start(ctx context.Context, c Command) (Process, error) {
4245
header := proto.ClientStartHeader{
4346
ID: c.ID,

tty_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,6 @@ func TestReconnectTTY(t *testing.T) {
168168
assert.Success(t, "context", ctx.Err())
169169
}
170170

171-
172171
func findEcho(t *testing.T, process Process, expected []string, notExpected ...string) bool {
173172
scanner := bufio.NewScanner(process.Stdout())
174173
outer:
@@ -188,4 +187,4 @@ outer:
188187
return false // Reached the end of output without finding str.
189188
}
190189
return true
191-
}
190+
}

0 commit comments

Comments
 (0)