feat: bewaak dat een test op het resultaat wacht en niet op de klok #530
No reviewers
Labels
No labels
accepted
bug
declined
docs
duplicate
enhancement
good first issue
in-progress
needs-info
privacy
security
triage
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
LibreKAT/Ocideck!530
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/vaste-vertragingen-poort"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Adds the gate the issue asked for. Note what it does not do, because the situation had moved on since the issue was written.
Closes #513
The instances are already gone
The issue names four repaired tests and asks whether more exist. A sweep of
test/finds zero remainingFuture.delayedin executable code — the only two occurrences are inside comments, andtest/support/pump_until.dartnow exists and is used by six test files.So the code half is done. What was missing is the half that matters for tomorrow: nothing stopped the habit coming back. That is the same shape as #150 → #506, and it is exactly why this issue was accepted as the carrier of the guard rather than of a fix.
The rule
A
Future.delayed(inside arunAsync(window intest/failsmake check-conventions. Baseline zero, no exceptions list — there is nothing to baseline.Line comments are stripped before matching. Without that the gate trips over its own counter-example:
pump_until.dartspells the anti-pattern out in full to explain why it is wrong. A gate that forbids its own documentation gets switched off, and deservedly.Verification, both directions
runAsync(() => Future.delayed(const Duration(milliseconds: 80)));pump_until.dart, whose doc comment contains that exact text.Gates
make checkgreen.make check-secrets/make saststill red for the pre-existing reasons in #522 and #521.Principles
No format, storage, dependency or outgoing traffic. Adds a constraint on us, not on the user's files.