A moto-based test expects old snapshots to be flagged, but `describe_snapshots` always shows `StartTime` as now.
IntermediateTroubleshootingConcurrency, async, tests, services & containers
Answer
Likely causes → moto stamps resources with the current time and does not let you set creation timestamps through the API.
Diagnose → Print StartTime in the test.
Fix → Test the age logic with a stub (unittest.mock.MagicMock paginator or botocore Stubber) returning controlled timestamps, or freeze/travel time (time-machine) so "now" during the check is far in the future relative to creation.
Prevent → Separate the "is it old?" rule into a pure function that takes now as a parameter.
More on Concurrency, async, tests, services & containers
`RuntimeError: asyncio.run() cannot be called from a running event loop` in a Jupyter notebook or inside an async framework.Intermediate`RuntimeWarning: coroutine 'fetch' was never awaited` and nothing happens.BeginnerAn asyncio health-checker is no faster than a sequential loop.Advanced`Task was destroyed but it is pending!` at shutdown.Advanced`OSError: [Errno 24] Too many open files` from an asyncio scanner with 20,000 targets.IntermediateA `ThreadPoolExecutor` job finishes "successfully" but half the work is missing, with no errors logged.Intermediate