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
920484d7
Commit
920484d7
authored
Jun 17, 2016
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: comment the assertion that detects file descriptor leaks
parent
b57d0dae
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
neo/tests/threaded/__init__.py
neo/tests/threaded/__init__.py
+3
-1
neo/tests/threaded/test.py
neo/tests/threaded/test.py
+7
-5
No files found.
neo/tests/threaded/__init__.py
View file @
920484d7
...
@@ -142,7 +142,9 @@ class Serialized(object):
...
@@ -142,7 +142,9 @@ class Serialized(object):
@
classmethod
@
classmethod
def
stop
(
cls
):
def
stop
(
cls
):
assert
not
cls
.
_fd_dict
,
cls
.
_fd_dict
assert
not
cls
.
_fd_dict
,
(
"file descriptor leak (%r)
\
n
This may happen"
" when a test fails, in which case you can see the real exception"
" by disabling this one."
%
cls
.
_fd_dict
)
del
(
cls
.
_busy
,
cls
.
_busy_cond
,
cls
.
_epoll
,
cls
.
_fd_dict
,
del
(
cls
.
_busy
,
cls
.
_busy_cond
,
cls
.
_epoll
,
cls
.
_fd_dict
,
cls
.
_pdb
,
cls
.
_sched_lock
,
cls
.
_tic_lock
)
cls
.
_pdb
,
cls
.
_sched_lock
,
cls
.
_tic_lock
)
...
...
neo/tests/threaded/test.py
View file @
920484d7
...
@@ -1004,10 +1004,12 @@ class Test(NEOThreadedTest):
...
@@ -1004,10 +1004,12 @@ class Test(NEOThreadedTest):
# modify x with another client
# modify x with another client
client
=
cluster
.
newClient
()
client
=
cluster
.
newClient
()
try
:
txn
=
transaction
.
Transaction
()
txn
=
transaction
.
Transaction
()
client
.
tpc_begin
(
txn
)
client
.
tpc_begin
(
txn
)
client
.
store
(
x1
.
_p_oid
,
x1
.
_p_serial
,
y
,
''
,
txn
)
client
.
store
(
x1
.
_p_oid
,
x1
.
_p_serial
,
y
,
''
,
txn
)
tid
=
client
.
tpc_finish
(
txn
,
None
)
tid
=
client
.
tpc_finish
(
txn
,
None
)
finally
:
client
.
close
()
client
.
close
()
self
.
tic
()
self
.
tic
()
...
...
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