Merge branch '9550-keep-services-env'
[arvados.git] / sdk / go / keepclient / collectionreader_test.go
index 9fb0d86114f8ce6dd273e560c227856dde3d7c25..2cc23738855dfeab3cd8ab2ef33cb27055a35fa1 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.
@@ -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)
 }