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

Function test_multi_upload

tests/test_wal_transfer.py:105–118  ·  view source on GitHub ↗

Model a case with upload concurrency.

()

Source from the content-addressed store, hash-verified

103
104
105def test_multi_upload():
106 """Model a case with upload concurrency."""
107 group = worker.WalTransferGroup(FakeWalUploader())
108 segments = list(prepare_multi_upload_segments())
109
110 # "Start" fake uploads
111 for seg in segments:
112 group.start(seg)
113
114 group.join()
115
116 # Check invariants on the non-explicit segments.
117 for seg in segments:
118 assert success(seg)
119
120
121def test_simple_fail():

Callers

nothing calls this directly

Calls 5

startMethod · 0.95
joinMethod · 0.95
FakeWalUploaderClass · 0.85
successFunction · 0.85

Tested by

no test coverage detected