pub fn flush_for_test() -> Result<()>
Compatibility entry point for callers using the original test helper.