X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/c7b7e4d44e9349c9104fbfcd33c5e4b97fe17a71..e3a1bf022cbc081cf7c7ebb441dc1ab1df200f98:/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 8b63449570..23e8cc93f2 100644 --- a/sdk/go/keepclient/root_sorter_test.go +++ b/sdk/go/keepclient/root_sorter_test.go @@ -8,19 +8,20 @@ import ( ) type RootSorterSuite struct{} + var _ = Suite(&RootSorterSuite{}) -func FakeSvcRoot(i uint64) (string) { +func FakeSvcRoot(i uint64) string { return fmt.Sprintf("https://%x.svc/", i) } -func FakeSvcUuid(i uint64) (string) { +func FakeSvcUuid(i uint64) string { return fmt.Sprintf("zzzzz-bi6l4-%015x", i) } -func FakeServiceRoots(n uint64) (map[string]string) { +func FakeServiceRoots(n uint64) map[string]string { sr := map[string]string{} - for i := uint64(0); i < n; i ++ { + for i := uint64(0); i < n; i++ { sr[FakeSvcUuid(i)] = FakeSvcRoot(i) } return sr @@ -39,7 +40,7 @@ func (*RootSorterSuite) JustOneRoot(c *C) { func (*RootSorterSuite) ReferenceSet(c *C) { fakeroots := FakeServiceRoots(16) // These reference probe orders are explained further in - // ../../python/arvados/keep.py: + // ../../python/tests/test_keep_client.py: expected_orders := []string{ "3eab2d5fc9681074", "097dba52e648f1c3",