Skip to content

Commit 3ac5b83

Browse files
authored
Enable the test skipped test (#225907)
Fixes: #225833
1 parent 7cae83e commit 3ac5b83

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

x-pack/platform/plugins/shared/task_manager/server/lib/get_next_run_at.test.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ import { getNextRunAt } from './get_next_run_at';
1111
import { loggerMock } from '@kbn/logging-mocks';
1212
const mockLogger = loggerMock.create();
1313

14-
// Failing: See https://github.com/elastic/kibana/issues/225833
15-
describe.skip('getNextRunAt', () => {
14+
describe('getNextRunAt', () => {
1615
afterEach(() => {
1716
jest.clearAllMocks();
1817
});
@@ -68,7 +67,7 @@ describe.skip('getNextRunAt', () => {
6867
test('should use the rrule with a fixed time when it is given to calculate the next runAt (same day)', () => {
6968
jest.useFakeTimers();
7069
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();
7271
const testStart = new Date(now.getTime() - 500);
7372
const testRunAt = new Date(now.getTime() - 1000);
7473
const nextRunAt = getNextRunAt(
@@ -95,8 +94,8 @@ describe.skip('getNextRunAt', () => {
9594

9695
test('should use the rrule with a fixed time when it is given to calculate the next runAt (next day)', () => {
9796
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();
10099
const testStart = new Date(now.getTime() - 500);
101100
const testRunAt = new Date(now.getTime() - 1000);
102101
const nextRunAt = getNextRunAt(

0 commit comments

Comments
 (0)