From cc6ab7fc90d6bf3b035ff10902cdd9552f60f39b Mon Sep 17 00:00:00 2001 From: Andrey Petrov Date: Mon, 11 Jul 2016 12:18:57 -0400 Subject: [PATCH] tests: Fix race condition in TestHostNameCollision --- host_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host_test.go b/host_test.go index c7527ab..e44b877 100644 --- a/host_test.go +++ b/host_test.go @@ -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