From 97c1780a9980b476429e97e74346a1e599fcf42d Mon Sep 17 00:00:00 2001 From: nirav24 Date: Tue, 10 Jan 2023 15:14:38 -0500 Subject: [PATCH] fix expected channels for TestAllDocsOnly --- db/database_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/db/database_test.go b/db/database_test.go index 0bf33b012e..284d692074 100644 --- a/db/database_test.go +++ b/db/database_test.go @@ -824,7 +824,10 @@ func TestAllDocsOnly(t *testing.T) { revid, _, err := collection.Put(ctx, ids[i].DocID, body) ids[i].RevID = revid ids[i].Sequence = uint64(i + 1) - ids[i].Channels = channels + // `*` channels gets added to docs for new creation. + // add `*` channel to expected channels + ids[i].Channels = append(channels, "*") + assert.NoError(t, err, "Couldn't create document") }