diff options
| author | Paul Buetow <paul@buetow.org> | 2024-06-04 23:32:38 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2024-06-04 23:32:38 +0300 |
| commit | dad73343d8d0d2fe0f69d3749ba2ac853e6e464c (patch) | |
| tree | 242d089b827e9773c2351dd1a77258f7e1251d6f /internal/server/repository/repository_test.go | |
| parent | a2001d4db7f19d0023d7c3a76da314571a1a4877 (diff) | |
dealing with two TODO items
Diffstat (limited to 'internal/server/repository/repository_test.go')
| -rw-r--r-- | internal/server/repository/repository_test.go | 5 |
1 files changed, 2 insertions, 3 deletions
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 |
