tests: Fix race condition in TestHostNameCollision

This commit is contained in:
Andrey Petrov committed 2016-07-11 12:18:57 -04:00
1 parent 48f65ed0e7
commit cc6ab7fc90
1 file changed
+1 -1
+1 -1
View File
@@ -63,7 +63,7 @@ func TestHostNameCollision(t *testing.T) {
// First client
go func() {
err = sshd.ConnectShell(s.Addr().String(), "foo", func(r io.Reader, w io.WriteCloser) {
err := sshd.ConnectShell(s.Addr().String(), "foo", func(r io.Reader, w io.WriteCloser) {
scanner := bufio.NewScanner(r)
// Consume the initial buffer