--- FAIL: TestHandleConnection_Success (0.00s) panic: runtime error: invalid memory address or nil pointer dereference [recovered] panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x2 addr=0x18 pc=0x10069ca6c] goroutine 19 [running]: testing.tRunner.func1.2({0x1007ffee0, 0x100956250}) /usr/local/go/src/testing/testing.go:1545 +0x1c8 testing.tRunner.func1() /usr/local/go/src/testing/testing.go:1548 +0x360 panic({0x1007ffee0?, 0x100956250?}) /usr/local/go/src/runtime/panic.go:914 +0x218 io.(*nopCloser).Read(0x140000a8af0?, {0x140000a8af0?, 0x14000056c48?, 0x1007589f0?}) :1 +0x2c io.ReadAtLeast({0x100d918c8, 0x14000098500}, {0x140000a8af0, 0x10, 0x10}, 0x10) /usr/local/go/src/io/io.go:335 +0xa0 io.ReadFull(...) /usr/local/go/src/io/io.go:354 github.com/google/uuid.NewRandomFromReader({0x100d918c8, 0x14000098500}) /Users/aedev/go/pkg/mod/github.com/google/uuid@v1.6.0/version4.go:49 +0x54 github.com/google/uuid.NewRandom() /Users/aedev/go/pkg/mod/github.com/google/uuid@v1.6.0/version4.go:41 +0x5c github.com/google/uuid.New(...) /Users/aedev/go/pkg/mod/github.com/google/uuid@v1.6.0/version4.go:14 ssh-timeout.(*ConnHandler).HandleConnection(0x140000e1f30, {0x1008353f0?, 0x140000ae180}) /Users/aedev/dev/ssh-timeout/main.go:31 +0x44 ssh-timeout.TestHandleConnection_Success(0x0?) /Users/aedev/dev/ssh-timeout/main_test.go:57 +0x250 testing.tRunner(0x14000083040, 0x1008322c8) /usr/local/go/src/testing/testing.go:1595 +0xe8 created by testing.(*T).Run in goroutine 1 /usr/local/go/src/testing/testing.go:1648 +0x33c FAIL ssh-timeout 0.505s FAIL