5824: Avoid sending empty slices through toRead chan. Fixes race in test case.
[arvados.git] / sdk / go / keepclient / collectionreader_test.go
index 9fb0d86114f8ce6dd273e560c227856dde3d7c25..58a047c55a053c14d8324266363fc7ad7fae33fa 100644 (file)
@@ -203,7 +203,7 @@ func (s *CollectionReaderUnit) TestCollectionReaderCloseEarly(c *check.C) {
 
        // doGet() should close toRead before sending any more bufs to it.
        if what, ok := <-rdr.(*cfReader).toRead; ok {
-               c.Errorf("Got %q, expected toRead to be closed", string(what))
+               c.Errorf("Got %q, expected toRead to be closed", what)
        }
 
        // Stub should have handled exactly one GET request.