Commit a1e6c63c authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 8cdedf83
......@@ -64,8 +64,6 @@ import (
"lab.nexedi.com/kirr/go123/xerr"
"lab.nexedi.com/kirr/neo/go/transaction"
"lab.nexedi.com/kirr/neo/go/zodb"
"github.com/stretchr/testify/require"
)
const kInf Key = 10000 // inf key (TeX hack)
......@@ -495,7 +493,6 @@ func xverifyΔBTail(t *testing.T, subj string, db *zodb.DB, treeRoot zodb.Oid, a
// tracked state defined by initialTrackedKeys.
func xverifyΔBTail1(t *testing.T, subj string, db *zodb.DB, treeRoot zodb.Oid, at1,at2 zodb.Tid, d12 map[Key]string, δZ *zodb.EventCommit, initialTrackedKeys SetKey, kadj map[Key]SetKey) {
X := exc.Raiseif
assert := require.New(t)
var kadjTracked SetKey = nil
var δT map[Key]string = nil
......@@ -571,7 +568,10 @@ func xverifyΔBTail1(t *testing.T, subj string, db *zodb.DB, treeRoot zodb.Oid,
// δbtail <- δZ
δB := δbtail.Update(δZ)
assert.Equal(δB.Rev, δZ.Tid)
if δB.Rev != δZ.Tid {
badf("δB: rev != δZ.Tid ; rev=%s δZ.Tid=%s", δB.Rev, δZ.Tid)
return
}
// assert δB.ByRoot == {treeRoot -> ...} if inδTOK != ø
......
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