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

Function test_cleanup_running

tests/test_prefetch.py:71–77  ·  view source on GitHub ↗
(pd, seg)

Source from the content-addressed store, hash-verified

69
70
71def test_cleanup_running(pd, seg):
72 pd.create(seg)
73 assert pd.is_running(seg)
74
75 nxt = next(seg.future_segment_stream())
76 pd.clear_except([nxt])
77 assert not pd.is_running(seg)
78
79
80def test_cleanup_promoted(pd, seg):

Callers

nothing calls this directly

Calls 4

is_runningMethod · 0.80
future_segment_streamMethod · 0.80
clear_exceptMethod · 0.80
createMethod · 0.45

Tested by

no test coverage detected