mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-20 03:36:25 +00:00
fix one utest
This commit is contained in:
parent
6061b6fc3c
commit
aea0abf54a
@ -38,10 +38,15 @@ class TestStorageFarmBroker(unittest.TestCase):
|
||||
|
||||
@inlineCallbacks
|
||||
def test_threshold_reached(self):
|
||||
tub = Mock()
|
||||
introducer = Mock()
|
||||
tub = Mock()
|
||||
broker = StorageFarmBroker(True)
|
||||
done = ConnectedEnough(broker, 5).when_connected_enough()
|
||||
broker.tubs['0'] = tub
|
||||
broker.tubs['1'] = tub
|
||||
broker.tubs['2'] = tub
|
||||
broker.tubs['3'] = tub
|
||||
broker.tubs['42'] = tub
|
||||
broker.use_introducer(introducer)
|
||||
# subscribes to "storage" to learn of new storage nodes
|
||||
subscribe = introducer.mock_calls[0]
|
||||
|
Loading…
Reference in New Issue
Block a user