fix(base): the test of resets shown to the owner's devices asks the sign-in ways on its own clock
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:
parent
fe2b4389b7
commit
a0f2ea8de5
1 changed files with 2 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue