We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0e0952 commit 1a3670aCopy full SHA for 1a3670a
1 file changed
pkg/sshd/server_test.go
@@ -1,13 +1,15 @@
1
package sshd
2
3
import (
4
+ "bytes"
5
"net"
6
"testing"
7
"time"
8
9
"github.com/deis/builder/pkg/controller"
10
11
"github.com/Masterminds/cookoo"
12
+ "github.com/arschles/assert"
13
"github.com/deis/builder/pkg/cleaner"
14
"golang.org/x/crypto/ssh"
15
)
@@ -19,6 +21,14 @@ const (
19
21
gitHome = "/git"
20
22
23
24
+func TestGitPktLine(t *testing.T) {
25
+ b := new(bytes.Buffer)
26
+ str := "hello world"
27
+ err := gitPktLine(b, str)
28
+ assert.NoErr(t, err)
29
+ t.Logf(string(b.Bytes()))
30
+}
31
+
32
// TestServer tests the SSH server.
33
//
34
// This listens on the non-standard port 2244 of localhost. This will generate
0 commit comments