Skip to content

Commit

Permalink
Update tests to work with go 1.10+ (gliderlabs#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
belak authored and moul committed Nov 16, 2018
1 parent 41e58b6 commit bfbea85
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 2.0
jobs:
build:
docker:
- image: golang:1.8
- image: golang:1.10
working_directory: /go/src/github.com/gliderlabs/ssh
steps:
- checkout
Expand Down
4 changes: 2 additions & 2 deletions session_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ func TestPty(t *testing.T) {
}, nil)
defer cleanup()
if err := session.RequestPty(term, winHeight, winWidth, gossh.TerminalModes{}); err != nil {
t.Fatalf("unexpected error requesting PTY", err)
t.Fatalf("expected nil but got %v", err)
}
if err := session.Shell(); err != nil {
t.Fatalf("expected nil but got %v", err)
Expand Down Expand Up @@ -252,7 +252,7 @@ func TestPtyResize(t *testing.T) {
defer cleanup()
// winch0
if err := session.RequestPty("xterm", winch0.Height, winch0.Width, gossh.TerminalModes{}); err != nil {
t.Fatalf("unexpected error requesting PTY", err)
t.Fatalf("expected nil but got %v", err)
}
if err := session.Shell(); err != nil {
t.Fatalf("expected nil but got %v", err)
Expand Down

0 comments on commit bfbea85

Please sign in to comment.