Commit 920484d7 authored by Julien Muchembled's avatar Julien Muchembled

tests: comment the assertion that detects file descriptor leaks

parent b57d0dae
...@@ -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)\nThis 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)
......
...@@ -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()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment