Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gregns1 committed Nov 17, 2023
1 parent 9d14c1c commit 3ad3467
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion db/revision_cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import (
"testing"

"github.com/couchbase/sync_gateway/base"
"github.com/couchbase/sync_gateway/channels"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down Expand Up @@ -50,7 +51,11 @@ func (t *testBackingStore) GetDocument(ctx context.Context, docid string, unmars
Channels: base.SetOf("*"),
},
}
doc.currentRevChannels = base.SetOf("*")
doc.Channels = channels.ChannelMap{
"*": &channels.ChannelRemoval{RevID: doc.CurrentRev},
}
// currentRevChannels usually populated on JSON unmarshal
doc.currentRevChannels = doc.getCurrentChannels()

doc.HLV = &HybridLogicalVector{
SourceID: "test",
Expand Down

0 comments on commit 3ad3467

Please sign in to comment.