@@ -11,8 +11,7 @@ import { getNextRunAt } from './get_next_run_at';
11
11
import { loggerMock } from '@kbn/logging-mocks' ;
12
12
const mockLogger = loggerMock . create ( ) ;
13
13
14
- // Failing: See https://github.com/elastic/kibana/issues/225833
15
- describe . skip ( 'getNextRunAt' , ( ) => {
14
+ describe ( 'getNextRunAt' , ( ) => {
16
15
afterEach ( ( ) => {
17
16
jest . clearAllMocks ( ) ;
18
17
} ) ;
@@ -68,7 +67,7 @@ describe.skip('getNextRunAt', () => {
68
67
test ( 'should use the rrule with a fixed time when it is given to calculate the next runAt (same day)' , ( ) => {
69
68
jest . useFakeTimers ( ) ;
70
69
jest . setSystemTime ( new Date ( '2025-06-30T10:00:00.000Z' ) ) ;
71
- const now = new Date ( '2025-06-30T10:00:00.000Z' ) ;
70
+ const now = new Date ( ) ;
72
71
const testStart = new Date ( now . getTime ( ) - 500 ) ;
73
72
const testRunAt = new Date ( now . getTime ( ) - 1000 ) ;
74
73
const nextRunAt = getNextRunAt (
@@ -95,8 +94,8 @@ describe.skip('getNextRunAt', () => {
95
94
96
95
test ( 'should use the rrule with a fixed time when it is given to calculate the next runAt (next day)' , ( ) => {
97
96
jest . useFakeTimers ( ) ;
98
- jest . setSystemTime ( new Date ( '2025-06-30T10 :00:00.000Z' ) ) ;
99
- const now = new Date ( '2025-06-30T13:00:00.000Z' ) ;
97
+ jest . setSystemTime ( new Date ( '2025-06-30T13 :00:00.000Z' ) ) ;
98
+ const now = new Date ( ) ;
100
99
const testStart = new Date ( now . getTime ( ) - 500 ) ;
101
100
const testRunAt = new Date ( now . getTime ( ) - 1000 ) ;
102
101
const nextRunAt = getNextRunAt (
0 commit comments