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
Vincent Pelletier
neoppod
Commits
f7b67cb9
Commit
f7b67cb9
authored
Jul 23, 2012
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: transaction.begin() does abort, not the contrary
parent
5b61b676
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
neo/tests/threaded/test.py
neo/tests/threaded/test.py
+4
-4
No files found.
neo/tests/threaded/test.py
View file @
f7b67cb9
...
@@ -525,7 +525,7 @@ class Test(NEOThreadedTest):
...
@@ -525,7 +525,7 @@ class Test(NEOThreadedTest):
try
:
try
:
t
=
self
.
newThread
(
t1
.
commit
)
t
=
self
.
newThread
(
t1
.
commit
)
l1
.
acquire
()
l1
.
acquire
()
t2
.
abort
()
t2
.
begin
()
finally
:
finally
:
del
p
del
p
l2
.
release
()
l2
.
release
()
...
@@ -576,10 +576,10 @@ class Test(NEOThreadedTest):
...
@@ -576,10 +576,10 @@ class Test(NEOThreadedTest):
finally
:
finally
:
master_client
()
master_client
()
x2
.
_p_deactivate
()
x2
.
_p_deactivate
()
t1
.
abort
()
# process invalidation and sync connection storage
t1
.
begin
()
# process invalidation and sync connection storage
self
.
assertEqual
(
x2
.
value
,
0
)
self
.
assertEqual
(
x2
.
value
,
0
)
# New testing transaction. Now we can see the last value of x.
# New testing transaction. Now we can see the last value of x.
t2
.
abort
()
t2
.
begin
()
self
.
assertEqual
(
x2
.
value
,
1
)
self
.
assertEqual
(
x2
.
value
,
1
)
# Now test cache invalidation during a load from a storage
# Now test cache invalidation during a load from a storage
...
@@ -610,7 +610,7 @@ class Test(NEOThreadedTest):
...
@@ -610,7 +610,7 @@ class Test(NEOThreadedTest):
client
.
close
()
client
.
close
()
client
.
setPoll
(
0
)
client
.
setPoll
(
0
)
cluster
.
client
.
setPoll
(
1
)
cluster
.
client
.
setPoll
(
1
)
t1
.
abort
()
# make sure invalidation is processed
t1
.
begin
()
# make sure invalidation is processed
finally
:
finally
:
del
p
del
p
# Resume processing of answer from storage. An entry should be
# Resume processing of answer from storage. An entry should be
...
...
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