From 4a4e60566661dad61fe86898c464caf0b2d5d55a Mon Sep 17 00:00:00 2001 From: Andrew Sisley Date: Mon, 2 Oct 2023 13:19:32 -0400 Subject: [PATCH] Remove unuseful unit test It never even touches the fetcher code --- db/fetcher_test.go | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/db/fetcher_test.go b/db/fetcher_test.go index f9edf8fdb1..7c6cb20b71 100644 --- a/db/fetcher_test.go +++ b/db/fetcher_test.go @@ -18,38 +18,9 @@ import ( "github.com/sourcenetwork/defradb/client" "github.com/sourcenetwork/defradb/core" - "github.com/sourcenetwork/defradb/db/base" "github.com/sourcenetwork/defradb/db/fetcher" ) -func newTestCollectionDescription() client.CollectionDescription { - return client.CollectionDescription{ - Name: "users", - ID: uint32(1), - Schema: client.SchemaDescription{ - Fields: []client.FieldDescription{ - { - Name: "_key", - ID: client.FieldID(1), - Kind: client.FieldKind_DocKey, - }, - { - Name: "Name", - ID: client.FieldID(2), - Kind: client.FieldKind_STRING, - Typ: client.LWW_REGISTER, - }, - { - Name: "Age", - ID: client.FieldID(3), - Kind: client.FieldKind_INT, - Typ: client.LWW_REGISTER, - }, - }, - }, - } -} - func TestFetcherStartWithoutInit(t *testing.T) { ctx := context.Background() df := new(fetcher.DocumentFetcher) @@ -57,12 +28,6 @@ func TestFetcherStartWithoutInit(t *testing.T) { assert.Error(t, err) } -func TestMakeIndexPrefixKey(t *testing.T) { - desc := newTestCollectionDescription() - key := base.MakeCollectionKey(desc) - assert.Equal(t, "/1", key.ToString()) -} - func TestFetcherGetAllPrimaryIndexEncodedDocSingle(t *testing.T) { ctx := context.Background() db, err := newMemoryDB(ctx)