Skip to main content

two_fixture_instances_observe_none_of_each_others_appends

Function two_fixture_instances_observe_none_of_each_others_appends 

pub async fn two_fixture_instances_observe_none_of_each_others_appends<F: Fixture>(
    open: impl AsyncFn() -> F,
) -> RuleOutcome
Expand description

Two fixture instances are two backing stores.

The mistake this rejects is an adapter’s, not the testkit’s: a file-backed fixture that points every instance at one temporary path. Under the old Fn() -> S factory that produced cross-test contamination surfacing as some unrelated rule failing intermittently. Here it fails one named rule, every time.

The read-back through the writing instance is not padding. Without it the rule is satisfied by an append that silently did nothing, which is a strictly easier way to pass it than isolation.