Skip to content

Commit a859b22

Browse files
committed
chore: update tests due to changes from time of day pieces
1 parent 9de4efe commit a859b22

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

packages/job-worker/src/playout/lookahead/__tests__/lookaheadOffset/constants.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export function generateFakeObectsString(
8989
export const partDuration = 3000
9090
export const lookaheadOffsetTestConstants = {
9191
multiLayerPart: {
92-
nowInPart: 0,
92+
partTimes: { nowInPart: 0 },
9393
partInstance: {
9494
_id: protectString('pLookahead_ml_instance'),
9595
part: {
@@ -142,7 +142,7 @@ export const lookaheadOffsetTestConstants = {
142142
regenerateTimelineAt: undefined,
143143
},
144144
multiLayerPartWhile: {
145-
nowInPart: 0,
145+
partTimes: { nowInPart: 0 },
146146
partInstance: {
147147
_id: protectString('pLookahead_ml_while_instance'),
148148
part: {
@@ -198,7 +198,7 @@ export const lookaheadOffsetTestConstants = {
198198
regenerateTimelineAt: undefined,
199199
},
200200
singleLayerPart: {
201-
nowInPart: 0,
201+
partTimes: { nowInPart: 0 },
202202
partInstance: {
203203
_id: protectString('pLookahead_sl_instance'),
204204
part: {
@@ -252,7 +252,7 @@ export const lookaheadOffsetTestConstants = {
252252
regenerateTimelineAt: undefined,
253253
},
254254
singleLayerPartWhile: {
255-
nowInPart: 0,
255+
partTimes: { nowInPart: 0 },
256256
partInstance: {
257257
_id: protectString('pLookahead_sl_while_instance'),
258258
part: {

packages/job-worker/src/playout/lookahead/__tests__/lookaheadOffset/lookaheadOffset.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ describe('lookahead offset integration', () => {
170170

171171
const res = await getLookeaheadObjects(context, playoutModel, {
172172
next: {
173-
nowInPart: 0,
173+
partTimes: { nowInPart: 0 },
174174
partInstance: {
175175
_id: protectString('pNextInstance'),
176176
part: {

0 commit comments

Comments
 (0)