From 3ebd228aae41c8356ab396cd0955329e988ff86d Mon Sep 17 00:00:00 2001 From: Gregory Newman-Smith Date: Thu, 16 Nov 2023 15:17:49 +0000 Subject: [PATCH] test fix --- db/revision_cache_test.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/db/revision_cache_test.go b/db/revision_cache_test.go index 91d94df408..05bb3a29c7 100644 --- a/db/revision_cache_test.go +++ b/db/revision_cache_test.go @@ -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" ) @@ -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",