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,11 +1004,13 @@ class Test(NEOThreadedTest): ...@@ -1004,11 +1004,13 @@ class Test(NEOThreadedTest):
# modify x with another client # modify x with another client
client = cluster.newClient() client = cluster.newClient()
txn = transaction.Transaction() try:
client.tpc_begin(txn) txn = transaction.Transaction()
client.store(x1._p_oid, x1._p_serial, y, '', txn) client.tpc_begin(txn)
tid = client.tpc_finish(txn, None) client.store(x1._p_oid, x1._p_serial, y, '', txn)
client.close() tid = client.tpc_finish(txn, None)
finally:
client.close()
self.tic() self.tic()
# Check reconnection to storage. # Check reconnection to storage.
......
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