Commit 876a7509 authored by Kirill Smelkov's avatar Kirill Smelkov

go/zodb: persistent tests: Use correct % for refcnt

Persistent.refcnt is int, %s prints it as e.g.

	%!s(int=1)

-> use %d.
parent 1f4f1e99
...@@ -100,7 +100,7 @@ func checkObj(t testing.TB, obj IPersistent, jar *Connection, oid Oid, serial Ti ...@@ -100,7 +100,7 @@ func checkObj(t testing.TB, obj IPersistent, jar *Connection, oid Oid, serial Ti
badf("invalid state: %s ; want %s", pbase.state, state) badf("invalid state: %s ; want %s", pbase.state, state)
} }
if pbase.refcnt != refcnt { if pbase.refcnt != refcnt {
badf("invalid refcnt: %s ; want %s", pbase.refcnt, refcnt) badf("invalid refcnt: %d ; want %d", pbase.refcnt, refcnt)
} }
if pbase.instance != obj { if pbase.instance != obj {
badf("base.instance != obj") badf("base.instance != obj")
......
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