Mehdi Akiki

Posts tagged "testing"

  • Published on
    An error response does not prove that a tool did nothing. Validate and authorize before effects, then assert unchanged storage and zero external calls after rejection.
  • Published on

    Article · Through the layers

    Don't fix a flaky test with a longer sleep

    Replace timing guesses with observable readiness and controlled time. Keep real transport deadlines separate from a deterministic retry-policy test.
  • Published on
    Capture a small regression fixture before changing code or asking an agent for a fix. Prove that the test detects the original failure and preserves the real requirement.
  • Published on
    An is_err assertion can pass because the database is unreachable. Check the intended error category and the stored outcome so unrelated failures cannot make a negative test green.
  • Published on

    Article · Through the layers

    Put two tenants in your authorization tests

    A one-tenant fixture cannot show cross-tenant access bugs. Exercise reads, writes, and reused database connections with two independent customer scopes.