Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
tempstorage
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
nexedi
tempstorage
Commits
3d09f75e
Commit
3d09f75e
authored
Jul 05, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! Fix loadBefore vs GC
Make sure that loadBefore actually uses ._conflict_cache data
parent
7099fd12
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
src/tempstorage/tests/testTemporaryStorage.py
src/tempstorage/tests/testTemporaryStorage.py
+6
-0
No files found.
src/tempstorage/tests/testTemporaryStorage.py
View file @
3d09f75e
...
...
@@ -19,6 +19,7 @@ from ZODB.tests import BasicStorage
from
ZODB.tests
import
Synchronization
from
ZODB.tests
import
ConflictResolution
from
ZODB.tests
import
MTStorage
from
ZODB.utils
import
p64
,
u64
def
handle_all_serials
(
oid
,
*
args
):
...
...
@@ -188,6 +189,11 @@ class TemporaryStorageTests(unittest.TestCase):
def
assertCacheKeys
(
*
voidrevOK
):
oidrevOK
=
set
(
voidrevOK
)
self
.
assertEqual
(
set
(
storage
.
_conflict_cache
.
keys
()),
oidrevOK
)
# make sure that loadBefore actually uses ._conflict_cache data
for
(
oid
,
rev
)
in
voidrevOK
:
load_data
,
load_serial
,
_
=
storage
.
loadBefore
(
oid
,
p64
(
u64
(
rev
)
+
1
))
data
,
t
=
storage
.
_conflict_cache
[(
oid
,
rev
)]
self
.
assertEqual
((
load_data
,
load_serial
),
(
data
,
rev
))
oid1
=
storage
.
new_oid
()
self
.
_dostore
(
storage
,
oid1
,
data
=
MinPO
(
5
))
...
...
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