File tree 1 file changed +7
-4
lines changed
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -933,10 +933,6 @@ export default class AppRenderer {
933
933
}
934
934
935
935
private setAccountExpiry ( expiry ?: string ) {
936
- if ( window . env . e2e && expiry ) {
937
- log . verbose ( 'Expiry of account:' , expiry ) ;
938
- }
939
-
940
936
const state = this . reduxStore . getState ( ) ;
941
937
const previousExpiry = state . account . expiry ;
942
938
this . reduxActions . account . updateAccountExpiry ( expiry ) ;
@@ -946,6 +942,13 @@ export default class AppRenderer {
946
942
if ( expiry !== undefined ) {
947
943
const expired = hasExpired ( expiry ) ;
948
944
945
+ // Debug logging when running e2e tests to figure out why test fails sometimes. This can be
946
+ // removed after test has been fixed.
947
+ if ( window . env . e2e && expiry ) {
948
+ const now = new Date ( ) . toISOString ( ) ;
949
+ log . verbose ( `Expiry of account: ${ expiry } , current time: ${ now } , has expired: ${ expired } ` ) ;
950
+ }
951
+
949
952
// Set state to expired when expiry date passes.
950
953
if ( ! expired && closeToExpiry ( expiry ) ) {
951
954
const delay = new Date ( expiry ) . getTime ( ) - Date . now ( ) ;
You can’t perform that action at this time.
0 commit comments