@@ -28,7 +28,6 @@ import { MINIMAL_V2_ENDPOINT } from "../../fixtures";
2828import { onInit } from "../../../src/v2/core" ;
2929import { MockRequest } from "../../fixtures/mockrequest" ;
3030import { runHandler } from "../../helper" ;
31- import * as params from "../../../src/params" ;
3231
3332const 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