From dad73343d8d0d2fe0f69d3749ba2ac853e6e464c Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Tue, 4 Jun 2024 23:32:38 +0300 Subject: dealing with two TODO items --- internal/server/repository/repository_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'internal/server/repository/repository_test.go') diff --git a/internal/server/repository/repository_test.go b/internal/server/repository/repository_test.go index b395241..a27108c 100644 --- a/internal/server/repository/repository_test.go +++ b/internal/server/repository/repository_test.go @@ -119,10 +119,11 @@ func TestRepositoryMerge(t *testing.T) { entry2, _ := makeAnotherEntry() // Need to have the same IDs so that the entries will actually be merged entry2.ID = entry1.ID + // Merge a modified entry2 into the repository. entry2.Body = "merged" entry2.Epoch = 12345 - _ = repo.Merge(entry2) + pairs, _ := repo.List() // Ensuring the merge didn't add a new entry if len(pairs) != 1 { @@ -176,5 +177,3 @@ func makeAnotherEntry() (types.Entry, error) { ` return types.NewEntry([]byte(entry)) } - -// TODO: Write unit tests for the remainder of the repo methods -- cgit v1.2.3