Skip to content

Commit c291e77

Browse files
committed
test issue
1 parent bf8fedb commit c291e77

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

db/document_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,11 +732,12 @@ func TestAlignRevTreeHistory(t *testing.T) {
732732
doc := NewDocument("doc")
733733
doc.CurrentRev = tc.currentRev
734734
for i := range tc.localRevTree {
735-
doc.History.addRevision("doc", RevInfo{
735+
err := doc.History.addRevision("doc", RevInfo{
736736
ID: tc.localRevTree[i],
737737
Parent: parent,
738738
})
739739
parent = tc.localRevTree[i]
740+
require.NoError(t, err)
740741
}
741742

742743
err := doc.alignRevTreeHistory(ctx, doc, tc.incomingRevTree)

rest/replicatortest/replicator_revtree_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func TestActiveReplicatorRevTreeReconciliation(t *testing.T) {
5858
ctx1 := rt1.Context()
5959

6060
docHistoryList := make([]string, 0, 11)
61-
docID := "doc1"
61+
docID := "doc1_" + tc.name
6262
var version rest.DocVersion
6363
if tc.replicationType == db.ActiveReplicatorTypePull {
6464
version = rt2.PutDocDirectly(docID, rest.JsonToMap(t, `{"source":"rt2","channels":["alice"]}`))
@@ -95,7 +95,7 @@ func TestActiveReplicatorRevTreeReconciliation(t *testing.T) {
9595
rt1Version, _ := rt1.GetDoc(docID)
9696
rest.RequireDocVersionEqual(t, version, rt1Version)
9797
} else {
98-
changesResults = rt1.WaitForChanges(1, "/{{.keyspace}}/_changes?since=0", "", true)
98+
changesResults = rt2.WaitForChanges(1, "/{{.keyspace}}/_changes?since=0", "", true)
9999
changesResults.RequireDocIDs(t, []string{docID})
100100

101101
rt2Version, _ := rt2.GetDoc(docID)

0 commit comments

Comments
 (0)