Commit a090c92b authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent e888d2ea
......@@ -780,10 +780,6 @@ func xverifyΔBTail_Get(t *testing.T, subj string, db *zodb.DB, treeRoot zodb.Oi
}
t.Run(fmt.Sprintf("Get/%s", subj), func(t *testing.T) {
for i := range vt {
fmt.Printf("at%d = @%s\n", i, vt[i].at)
}
tkeys := allTestKeys(vt...)
tkeyv := tkeys.SortedKeys()
......@@ -806,6 +802,12 @@ func xverifyΔBTail_Get1(t *testing.T, db *zodb.DB, treeRoot zodb.Oid, vt []*tTr
X := exc.Raiseif
// XXX tracked / ?
// tid -> "at_i"
xat := map[zodb.Tid]string{}
for i := range vt {
xat[vt[i].at] = fmt.Sprintf("at%d", i)
}
// t1->t2-> ... -> tn
δbtail := NewΔBtail(vt[0].at, db)
for i := 1; i < len(vt); i++ {
......@@ -853,8 +855,8 @@ func xverifyΔBTail_Get1(t *testing.T, db *zodb.DB, treeRoot zodb.Oid, vt []*tTr
if !(v == v_ && ok == ok_ && rev == rev_ && revExact == revExact_) {
t.Errorf("Get(%d, @%s) ->\nhave: %s, %v, @%s, %v\nwant: %s, %v, @%s, %v",
k, at,
v, ok, rev, revExact,
v_, ok_, rev_, revExact_)
v, ok, xat[rev], revExact,
v_, ok_, xat[rev_], revExact_)
}
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment