Skip to content

Commit 0edec56

Browse files
committed
asdf
1 parent 6c82bd3 commit 0edec56

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

gui/src/renderer/app.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -947,7 +947,7 @@ export default class AppRenderer {
947947

948948
// Set state to expired when expiry date passes.
949949
if (!expired && closeToExpiry(expiry)) {
950-
const delay = new Date(expiry).getTime() - Date.now();
950+
const delay = new Date(expiry).getTime() - Date.now() + 1;
951951
log.info('Close to expiry, setting timout', delay);
952952
this.expiryScheduler.schedule(() => this.handleExpiry(expiry, true), delay);
953953
} else {

gui/test/e2e/mocked/expired-account-error-view.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ test('App should show Expired Account Error View', async () => {
3535

3636
test('App should show out of time view after running out of time', async () => {
3737
const expiryDate = new Date();
38-
expiryDate.setSeconds(expiryDate.getSeconds() + 5);
38+
expiryDate.setSeconds(expiryDate.getSeconds() + 2);
3939
console.log('Creating expiry', expiryDate, '; now: ', new Date());
4040

4141
expect(await util.waitForNavigation(async () => {

0 commit comments

Comments
 (0)