• Julien Muchembled's avatar
    Fix several random failures in tests that didn't wait for transaction to be unlocked · c4ac45a8
    Julien Muchembled authored
    NEOCluster.tic() gets a new 'slave' parameter that must be True when a client
    node is in 'master' mode (i.e. setPoll(True)). In this case, tic() will wait
    that all nodes finish their work and the client polls with a non-zero timeout.
    
    Here, tic(slave=1) is used to wait for the storage to process
    NotifyUnlockInformation notification from the master.
    
    Traceback (most recent call last):
      File "neo/tests/threaded/test.py", line 80, in testBasicStore
        self.assertEqual(data_info, cluster.storage.getDataLockInfo())
      File "neo/tests/__init__.py", line 170, in assertEqual
        return super(NeoTestBase, self).assertEqual(first, second, msg=msg)
    failureException: {('\x0b\xee\xc7\xb5\xea?\x0f\xdb\xc9]\r\xd4\x7f<[\xc2u\xda\x8a3', 0): 0} != {('\x0b\xee\xc7\xb5\xea?\x0f\xdb\xc9]\r\xd4\x7f<[\xc2u\xda\x8a3', 0): 1}
    c4ac45a8
Name
Last commit
Last update
neo Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
BUGS Loading commit data...
CHANGES Loading commit data...
COPYING Loading commit data...
MANIFEST.in Loading commit data...
README Loading commit data...
TESTS.txt Loading commit data...
TODO Loading commit data...
UPGRADE Loading commit data...
ZODB3.patch Loading commit data...
importer.conf Loading commit data...
neo.conf Loading commit data...
neoadmin Loading commit data...
neoctl Loading commit data...
neolog Loading commit data...
neomaster Loading commit data...
neomigrate Loading commit data...
neostorage Loading commit data...
setup.py Loading commit data...