test: allow goroutine to exit even if test blocks

This commit is contained in:
Michael Schurter 2020-02-07 07:30:16 -08:00
parent c5073f61a7
commit 63032917fc
1 changed files with 1 additions and 1 deletions

View File

@ -481,7 +481,7 @@ func TestHTTP_FS_Logs_Follow(t *testing.T) {
req, err := http.NewRequest("GET", path, nil)
require.Nil(err)
respW := testutil.NewResponseRecorder()
errCh := make(chan error)
errCh := make(chan error, 1)
go func() {
_, err := s.Server.Logs(respW, req)
errCh <- err