Skip to content

Commit 28d307a

Browse files
committed
format
1 parent 062dd0b commit 28d307a

2 files changed

Lines changed: 7 additions & 11 deletions

File tree

internal-packages/schedule-engine/src/engine/index.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,12 @@ export class ScheduleEngine {
8787
description: "Total number of absolute schedule windows capped at the next nominal interval",
8888
});
8989

90-
this.schedulePhasePersistedCounter = this.meter.createCounter("schedule_phase_persisted_total", {
91-
description: "Total number of schedule phases persisted during registration",
92-
});
90+
this.schedulePhasePersistedCounter = this.meter.createCounter(
91+
"schedule_phase_persisted_total",
92+
{
93+
description: "Total number of schedule phases persisted during registration",
94+
}
95+
);
9396

9497
this.devEnvironmentCheckCounter = this.meter.createCounter("dev_environment_checks_total", {
9598
description: "Total number of development environment connectivity checks",
@@ -222,7 +225,6 @@ export class ScheduleEngine {
222225
const fromTimestamp = params.fromTimestamp ?? registrationTime;
223226
span.setAttribute("from_timestamp", fromTimestamp.toISOString());
224227

225-
226228
const {
227229
nominalAt,
228230
candidateEffectiveAt,

internal-packages/schedule-engine/test/scheduleEngine2.test.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -146,13 +146,7 @@ describe("ScheduleEngine Integration (part 2)", () => {
146146
where: { id: scheduleInstance.id },
147147
select: { schedulePhase: true },
148148
});
149-
expect(updatedInstance.schedulePhase).toBe(
150-
calculateSchedulePhase({
151-
secret: "test-schedule-phase-secret",
152-
environmentId: environment.id,
153-
deduplicationKey: taskSchedule.deduplicationKey,
154-
})
155-
);
149+
expect(updatedInstance.schedulePhase).toBeNull();
156150
} finally {
157151
await engine.quit();
158152
}

0 commit comments

Comments
 (0)