Skip to content

Commit

Permalink
Prevent document echo with CBS
Browse files Browse the repository at this point in the history
  • Loading branch information
torcolvin committed Dec 9, 2024
1 parent 2eacccd commit 80f71a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xdcr/xdcr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 80f71a6

Please sign in to comment.