[ARVADOS] updated: 2.1.0-1095-ge10c23d41

Git user git at public.arvados.org
Thu Jul 22 21:03:06 UTC 2021


Summary of changes:
 sdk/go/keepclient/keepclient_test.go | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

       via  e10c23d41a9591830a20171a0f9cb6cfe2921b11 (commit)
      from  53f54e1b9f424b391c8b4d2aac3c4ae8ea4fc198 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit e10c23d41a9591830a20171a0f9cb6cfe2921b11
Author: Lucas Di Pentima <lucas.dipentima at curii.com>
Date:   Thu Jul 22 18:02:53 2021 -0300

    16665: Fixes tests.
    
    Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima at curii.com>

diff --git a/sdk/go/keepclient/keepclient_test.go b/sdk/go/keepclient/keepclient_test.go
index c52e07b8f..62268fa46 100644
--- a/sdk/go/keepclient/keepclient_test.go
+++ b/sdk/go/keepclient/keepclient_test.go
@@ -8,7 +8,6 @@ import (
 	"bytes"
 	"context"
 	"crypto/md5"
-	"errors"
 	"fmt"
 	"io"
 	"io/ioutil"
@@ -586,7 +585,7 @@ func (s *StandaloneSuite) TestPutWithTooManyFail(c *C) {
 
 	_, replicas, err := kc.PutB([]byte("foo"))
 
-	c.Check(err, FitsTypeOf, InsufficientReplicasError(errors.New("")))
+	c.Check(err, FitsTypeOf, InsufficientReplicasError{})
 	c.Check(replicas, Equals, 1)
 	c.Check(<-st.handled, Equals, ks1[0].url)
 }
@@ -1109,7 +1108,7 @@ func (s *StandaloneSuite) TestPutProxyInsufficientReplicas(c *C) {
 	_, replicas, err := kc.PutB([]byte("foo"))
 	<-st.handled
 
-	c.Check(err, FitsTypeOf, InsufficientReplicasError(errors.New("")))
+	c.Check(err, FitsTypeOf, InsufficientReplicasError{})
 	c.Check(replicas, Equals, 2)
 }
 
@@ -1187,7 +1186,7 @@ func (s *StandaloneSuite) TestPutBWant2ReplicasWithOnlyOneWritableLocalRoot(c *C
 
 	_, replicas, err := kc.PutB([]byte("foo"))
 
-	c.Check(err, FitsTypeOf, InsufficientReplicasError(errors.New("")))
+	c.Check(err, FitsTypeOf, InsufficientReplicasError{})
 	c.Check(replicas, Equals, 1)
 
 	c.Check(<-st.handled, Equals, localRoots[fmt.Sprintf("zzzzz-bi6l4-fakefakefake%03d", 0)])
@@ -1225,7 +1224,7 @@ func (s *StandaloneSuite) TestPutBWithNoWritableLocalRoots(c *C) {
 
 	_, replicas, err := kc.PutB([]byte("foo"))
 
-	c.Check(err, FitsTypeOf, InsufficientReplicasError(errors.New("")))
+	c.Check(err, FitsTypeOf, InsufficientReplicasError{})
 	c.Check(replicas, Equals, 0)
 }
 

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list