X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/87640a81e725d0246837994acbb3a696d14401c6..305cee61ba4a122f7d63a01f4a7b9b98737b8646:/sdk/go/keepclient/collectionreader_test.go?ds=sidebyside diff --git a/sdk/go/keepclient/collectionreader_test.go b/sdk/go/keepclient/collectionreader_test.go index 9fb0d86114..2cc2373885 100644 --- a/sdk/go/keepclient/collectionreader_test.go +++ b/sdk/go/keepclient/collectionreader_test.go @@ -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. @@ -220,4 +220,5 @@ func (s *CollectionReaderUnit) TestCollectionReaderDataError(c *check.C) { c.Check(err, check.NotNil) c.Check(err, check.Not(check.Equals), io.EOF) } + c.Check(rdr.Close(), check.NotNil) }