Skip to content

Commit 91b4f0f

Browse files
committed
Merge branch 'feat/scheduler-attempt-deadline-timeout' of https://github.com/firebase/firebase-functions into feat/scheduler-attempt-deadline-timeout
2 parents 01dd6d5 + 608405a commit 91b4f0f

File tree

1 file changed

+1
-29
lines changed

1 file changed

+1
-29
lines changed

spec/v2/providers/scheduler.spec.ts

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ import { MINIMAL_V2_ENDPOINT } from "../../fixtures";
2828
import { onInit } from "../../../src/v2/core";
2929
import { MockRequest } from "../../fixtures/mockrequest";
3030
import { runHandler } from "../../helper";
31-
import * as params from "../../../src/params";
3231

3332
const MINIMAL_SCHEDULE_TRIGGER: ManifestEndpoint["scheduleTrigger"] = {
3433
schedule: "",
@@ -158,7 +157,7 @@ describe("schedule", () => {
158157
() => console.log(1)
159158
);
160159

161-
expect(schfn.__endpoint).to.deep.equal({
160+
expect(schfn.__endpoint).to.deep.eq({
162161
platform: "gcfv2",
163162
labels: {},
164163
scheduleTrigger: {
@@ -181,33 +180,6 @@ describe("schedule", () => {
181180
]);
182181
});
183182

184-
it("should set attemptDeadlineSeconds from timeoutSeconds", () => {
185-
const schfn = schedule.onSchedule(
186-
{
187-
schedule: "* * * * *",
188-
timeoutSeconds: 3600,
189-
},
190-
() => undefined
191-
);
192-
193-
expect(schfn.__endpoint.timeoutSeconds).to.deep.eq(3600);
194-
expect(schfn.__endpoint.scheduleTrigger?.attemptDeadlineSeconds).to.deep.eq(3600);
195-
});
196-
197-
it("should set attemptDeadlineSeconds from Expression timeoutSeconds", () => {
198-
const timeout = params.defineInt("TIMEOUT");
199-
const schfn = schedule.onSchedule(
200-
{
201-
schedule: "* * * * *",
202-
timeoutSeconds: timeout,
203-
},
204-
() => undefined
205-
);
206-
207-
expect(schfn.__endpoint.timeoutSeconds).to.deep.eq(timeout);
208-
expect(schfn.__endpoint.scheduleTrigger?.attemptDeadlineSeconds).to.deep.eq(timeout);
209-
});
210-
211183
it("should have a .run method", async () => {
212184
const testObj = {
213185
foo: "bar",

0 commit comments

Comments
 (0)