Skip to content

Commit

Permalink
updates from rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
gregns1 committed Nov 17, 2023
1 parent 326a222 commit d82e2dd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions db/changes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ func TestCurrentVersionPopulationOnChannelCache(t *testing.T) {
require.NoError(t, err)

// Put a doc that gets assigned a CV to populate the channel cache with
_, _, err = collection.Put(ctx, "doc1", Body{"channels": []string{"ABC"}})
_, docVersion, _, err := collection.Put(ctx, "doc1", Body{"channels": []string{"ABC"}})
require.NoError(t, err)
err = collection.WaitForPendingChanges(base.TestCtx(t))
require.NoError(t, err)
Expand All @@ -593,6 +593,6 @@ func TestCurrentVersionPopulationOnChannelCache(t *testing.T) {
assert.Equal(t, "doc1", entries[0].DocID)
assert.Equal(t, uintCAS, entries[0].Version)
assert.Equal(t, bucketUUID, entries[0].SourceID)
assert.Equal(t, syncData.HLV.SourceID, entries[0].SourceID)
assert.Equal(t, syncData.HLV.Version, entries[0].Version)
assert.Equal(t, docVersion.SourceID, entries[0].SourceID)
assert.Equal(t, docVersion.Version, entries[0].Version)
}
6 changes: 3 additions & 3 deletions db/crud_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1693,7 +1693,7 @@ func TestPutExistingCurrentVersion(t *testing.T) {
key := "doc1"
body := Body{"key1": "value1"}

rev, _, err := collection.Put(ctx, key, body)
rev, _, _, err := collection.Put(ctx, key, body)
require.NoError(t, err)

// assert on HLV on that above PUT
Expand All @@ -1710,7 +1710,7 @@ func TestPutExistingCurrentVersion(t *testing.T) {
// PUT an update to the above doc
body = Body{"key1": "value11"}
body[BodyRev] = rev
_, _, err = collection.Put(ctx, key, body)
_, _, _, err = collection.Put(ctx, key, body)
require.NoError(t, err)

// grab the new version for the above update to assert against later in test
Expand Down Expand Up @@ -1780,7 +1780,7 @@ func TestPutExistingCurrentVersionWithConflict(t *testing.T) {
key := "doc1"
body := Body{"key1": "value1"}

_, _, err := collection.Put(ctx, key, body)
_, _, _, err := collection.Put(ctx, key, body)
require.NoError(t, err)

// assert on the HLV values after the above creation of the doc
Expand Down

0 comments on commit d82e2dd

Please sign in to comment.