Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat: Add support for MOTD file in coder agents #5147

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Nov 24, 2022
Prev Previous commit
Next Next commit
Start session Shell vs Run
  • Loading branch information
mafredri committed Nov 23, 2022
commit 80d35ebdcbf01385f3c6755dad92a606c98f99ec
8 changes: 4 additions & 4 deletions agent/agent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,10 +221,10 @@ func TestAgent(t *testing.T) {
session.Stdout = &stdout
session.Stderr = ptty.Output()
session.Stdin = ptty.Input()
err = session.Start("")
err = session.Shell()
require.NoError(t, err)

ptty.WriteLine("exit")
ptty.WriteLine("exit 0")
err = session.Wait()
require.NoError(t, err)

Expand Down Expand Up @@ -264,10 +264,10 @@ func TestAgent(t *testing.T) {
session.Stdout = &stdout
session.Stderr = ptty.Output()
session.Stdin = ptty.Input()
err = session.Start("")
err = session.Shell()
require.NoError(t, err)

ptty.WriteLine("exit")
ptty.WriteLine("exit 0")
err = session.Wait()
require.NoError(t, err)

Expand Down