Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
neoppod
Commits
b8d42b90
Commit
b8d42b90
authored
Feb 20, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
54873d26
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
go/zodb/persistent_test.go
go/zodb/persistent_test.go
+16
-1
No files found.
go/zodb/persistent_test.go
View file @
b8d42b90
...
...
@@ -173,7 +173,22 @@ func TestPersistentBasic(t *testing.T) {
obj2
:=
&
Unregistered
{}
assert
.
Equal
(
ClassOf
(
obj2
),
`ZODB.Go("lab.nexedi.com/kirr/neo/go/zodb.Unregistered")`
)
// XXX deactivate refcnt < 0 - check error message (this verifies badf fix)
// deactivate refcnt < 0 -> panic
func
()
{
defer
func
()
{
r
:=
recover
()
if
r
==
nil
{
t
.
Fatal
(
"deactivate refcnt < 0: not panicked"
)
}
ehave
:=
fmt
.
Sprintf
(
"%s"
,
r
)
ewant
:=
fmt
.
Sprintf
(
"t.zodb.MyObject(%s): deactivate: refcnt < 0 (= -1)"
,
Oid
(
12
))
if
ehave
!=
ewant
{
t
.
Fatalf
(
"deactivate refcnt < 0: panic error unexpected:
\n
have: %q
\n
want: %q"
,
ehave
,
ewant
)
}
}()
obj
.
PDeactivate
()
}()
}
// zcacheControl is simple live cache control that prevents specified objects
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment