Skip to content

Commit 3ad3467

Browse files
committed
test fix
1 parent 9d14c1c commit 3ad3467

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

db/revision_cache_test.go

+6-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import (
1919
"testing"
2020

2121
"github.com/couchbase/sync_gateway/base"
22+
"github.com/couchbase/sync_gateway/channels"
2223
"github.com/stretchr/testify/assert"
2324
"github.com/stretchr/testify/require"
2425
)
@@ -50,7 +51,11 @@ func (t *testBackingStore) GetDocument(ctx context.Context, docid string, unmars
5051
Channels: base.SetOf("*"),
5152
},
5253
}
53-
doc.currentRevChannels = base.SetOf("*")
54+
doc.Channels = channels.ChannelMap{
55+
"*": &channels.ChannelRemoval{RevID: doc.CurrentRev},
56+
}
57+
// currentRevChannels usually populated on JSON unmarshal
58+
doc.currentRevChannels = doc.getCurrentChannels()
5459

5560
doc.HLV = &HybridLogicalVector{
5661
SourceID: "test",

0 commit comments

Comments
 (0)