fix(base): the test of resets shown to the owner's devices asks the sign-in ways on its own clock
All checks were successful
CI / check (push) Successful in 36m43s
CI / deploy (push) Successful in 2m13s

Its clock is fixed at 20 Oct 2026 and the reset it asks lapses a week
after taking effect, so asked on the real clock it was gone from 30 Oct.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
This commit is contained in:
Tizian 「ティツィアーン」 2026-10-30 15:52:36 +01:00
commit a0f2ea8de5
Signed by: raisondetredev
GPG key ID: 07F6FCF405488B64

View file

@ -561,12 +561,12 @@ void main() {
test("are shown to the owner's signed-in devices, each kind with "
'when it takes effect, none lapsed or carried out', () async {
await annaComplete();
var ways = await endpoints.account.signInWays(asAnna());
var ways = await atNow(() => endpoints.account.signInWays(asAnna()));
expect(ways.authenticatorResetAt, isNull);
expect(ways.accountResetAt, isNull);
final authenticator = await askAuthenticatorReset();
final account = await askAccountReset();
ways = await endpoints.account.signInWays(asAnna());
ways = await atNow(() => endpoints.account.signInWays(asAnna()));
expect(ways.authenticatorResetAt, authenticator.takesEffectAt);
expect(ways.accountResetAt, account.takesEffectAt);
// Lapsed: shown no more.