Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
Commits
f6540a23
Commit
f6540a23
authored
Mar 12, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
413c07d3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
go/zodb/persistent_test.go
go/zodb/persistent_test.go
+5
-2
No files found.
go/zodb/persistent_test.go
View file @
f6540a23
...
...
@@ -456,7 +456,8 @@ func (t *tConnection) fatalif(err error) {
// Persistent tests with storage.
//
// this test covers everything at application-level: Persistent, DB, Connection, LiveCache.
// this test covers everything at application-level: Persistent, DB, Connection
// and somewhat LiveCache.
func
TestPersistentDB
(
t
*
testing
.
T
)
{
// perform tests without and with raw data cache.
// (rawcache=y verifies how raw cache handles invalidations)
...
...
@@ -780,7 +781,7 @@ func TestLiveCache(t0 *testing.T) {
t
.
checkObj
(
objPD
,
103
,
InvalidTid
,
GHOST
,
0
)
t
.
checkObj
(
objDD
,
104
,
InvalidTid
,
GHOST
,
0
)
// live cache should keep pinned object
live
even if we drop all
// live cache should keep pinned object
present
even if we drop all
// regular pointers to it and do GC.
obj
.
_v_cookie
=
"peace"
objPK
.
_v_cookie
=
"labour"
...
...
@@ -817,6 +818,8 @@ func TestLiveCache(t0 *testing.T) {
assert
.
Equal
(
obj
.
_v_cookie
,
""
)
assert
.
Equal
(
objDD
.
_v_cookie
,
""
)
// TODO reclassify tests
}
// TODO Map & List tests.
...
...
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