documented.

The deadlock was occurring because of a silent panic in the listenForAppends() goroutine.  If I remember correctly, "go test" appears to be silent about goroutines dying.