From 80f71a678c1769fb41782736e190dcc11d474a0f Mon Sep 17 00:00:00 2001 From: Tor Colvin Date: Mon, 9 Dec 2024 11:18:34 -0500 Subject: [PATCH] Prevent document echo with CBS --- xdcr/xdcr_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xdcr/xdcr_test.go b/xdcr/xdcr_test.go index f198116a8c..de607f71c3 100644 --- a/xdcr/xdcr_test.go +++ b/xdcr/xdcr_test.go @@ -643,7 +643,8 @@ func TestVVMultiActor(t *testing.T) { // Create document on source docID := "doc1" ver1Body := `{"ver":1}` - fromCAS, err := fromDs.WriteCas(docID, 0, 0, []byte(ver1Body), 0) + // write with user xattr to prevent echo for xattrs defined on source and target + fromCAS, err := fromDs.WriteWithXattrs(ctx, docID, 0, 0, []byte(ver1Body), map[string][]byte{"userxattr": []byte(`{"dummy": "xattr"}`)}, nil, nil) require.NoError(t, err) // start bidirectional XDCR