From ae90702a4b5fa2dd7a9972b06639a1138a0b466f 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 803e5b50a0..a4a737e243 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") }