X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/1304e044aa87a65145bf8b6d4bc141586556c0ed..659a8c75c837ec30e2f9fb6f1a1859b625626c3e:/sdk/go/keepclient/root_sorter_test.go diff --git a/sdk/go/keepclient/root_sorter_test.go b/sdk/go/keepclient/root_sorter_test.go index 0d45e908ed..455715d427 100644 --- a/sdk/go/keepclient/root_sorter_test.go +++ b/sdk/go/keepclient/root_sorter_test.go @@ -1,7 +1,6 @@ package keepclient import ( - "crypto/md5" "fmt" . "gopkg.in/check.v1" "strconv" @@ -27,10 +26,6 @@ func FakeServiceRoots(n uint64) (map[string]string) { return sr } -func Md5String(data string) (string) { - return fmt.Sprintf("%032x", md5.Sum([]byte(data))) -} - func (*RootSorterSuite) EmptyRoots(c *C) { rs := NewRootSorter(map[string]string{}, Md5String("foo")) c.Check(rs.GetSortedRoots(), Equals, []string{}) @@ -43,6 +38,8 @@ func (*RootSorterSuite) JustOneRoot(c *C) { func (*RootSorterSuite) ReferenceSet(c *C) { fakeroots := FakeServiceRoots(16) + // These reference probe orders are explained further in + // ../../python/tests/test_keep_client.py: expected_orders := []string{ "3eab2d5fc9681074", "097dba52e648f1c3",