MCPcopy Create free account
hub / github.com/wal-e/wal-e / test_simple_concurrency

Function test_simple_concurrency

tests/test_tar_upload_pool.py:55–62  ·  view source on GitHub ↗

Try a pool that cannot execute all submitted jobs at once.

()

Source from the content-addressed store, hash-verified

53
54
55def test_simple_concurrency():
56 """Try a pool that cannot execute all submitted jobs at once."""
57 pool = make_pool(1, 1)
58
59 for i in range(3):
60 pool.put(FakeTarPartition(1))
61
62 pool.join()
63
64
65def test_fault_midstream():

Callers

nothing calls this directly

Calls 4

make_poolFunction · 0.85
FakeTarPartitionClass · 0.85
putMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected