Commit e1d57c16 authored by Kirill Smelkov's avatar Kirill Smelkov

go/zodb: persistent test: Fix thinko in tPersistentDB.checkObj

It was printing oid instead of obj.
parent 2e8448ad
...@@ -256,7 +256,7 @@ func (t *tPersistentDB) checkObj(obj *MyObject, oid Oid, serial Tid, state Objec ...@@ -256,7 +256,7 @@ func (t *tPersistentDB) checkObj(obj *MyObject, oid Oid, serial Tid, state Objec
connObj := cache.Get(oid) connObj := cache.Get(oid)
cache.Unlock() cache.Unlock()
if obj != connObj { if obj != connObj {
t.Fatalf("cache.get %s -> not same object:\nhave: %#v\nwant: %#v", oid, connObj, oid) t.Fatalf("cache.get %s -> not same object:\nhave: %#v\nwant: %#v", oid, connObj, obj)
} }
// and conn.Get must return exactly obj. // and conn.Get must return exactly obj.
...@@ -265,7 +265,7 @@ func (t *tPersistentDB) checkObj(obj *MyObject, oid Oid, serial Tid, state Objec ...@@ -265,7 +265,7 @@ func (t *tPersistentDB) checkObj(obj *MyObject, oid Oid, serial Tid, state Objec
t.Fatal(err) t.Fatal(err)
} }
if obj != connObj { if obj != connObj {
t.Fatalf("conn.get %s -> not same object:\nhave: %#v\nwant: %#v", oid, connObj, oid) t.Fatalf("conn.get %s -> not same object:\nhave: %#v\nwant: %#v", oid, connObj, obj)
} }
checkObj(t.T, obj, t.conn, oid, serial, state, refcnt) checkObj(t.T, obj, t.conn, oid, serial, state, refcnt)
......
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