A subscription flushed its state file through a package variable, which
the ntfy tests replaced with a no-op in their TestMain. Tests in other
packages could not reach it, so the daemon's own tests still flushed
for real.
Options.Sync now takes the flush; nil means (*os.File).Sync, as before.
The ntfy tests pass a no-op through their options and to saveState.
Behaviour is unchanged.
docs/plans/ntfy.md names the option, and its line references follow the
code.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>