mirror of
https://github.com/shazow/ssh-chat.git
synced 2025-06-02 00:21:04 +03:00
tests: Fix race condition in TestHostNameCollision
This commit is contained in:
parent
48f65ed0e7
commit
cc6ab7fc90
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user