@@ -95,7 +95,7 @@ describe("context tests", () => {
95
95
96
96
const throws = async ( ) => {
97
97
await context . run ( "outer step" , async ( ) => {
98
- await context . call ( "inner call" , { url : "https://some-url.com" } ) ;
98
+ await context . call ( "inner call" , { url : "https://some-url.com" } ) ;
99
99
} ) ;
100
100
} ;
101
101
expect ( throws ) . toThrow (
@@ -137,6 +137,7 @@ describe("context tests", () => {
137
137
body : '{"stepId":1,"stepName":"my-step","stepType":"Run","out":"my-result","concurrent":1}' ,
138
138
destination : WORKFLOW_ENDPOINT ,
139
139
headers : {
140
+ "upstash-feature-set" : "WF_NoDelete" ,
140
141
"content-type" : "application/json" ,
141
142
"upstash-forward-upstash-workflow-sdk-version" : "1" ,
142
143
"upstash-method" : "POST" ,
@@ -185,6 +186,7 @@ describe("context tests", () => {
185
186
} ,
186
187
timeout : "20s" ,
187
188
timeoutHeaders : {
189
+ "Upstash-Feature-Set" : [ "WF_NoDelete" ] ,
188
190
"Content-Type" : [ "application/json" ] ,
189
191
[ `Upstash-Forward-${ WORKFLOW_PROTOCOL_VERSION_HEADER } ` ] : [ "1" ] ,
190
192
"Upstash-Retries" : [ "3" ] ,
@@ -234,6 +236,7 @@ describe("context tests", () => {
234
236
body : '{"stepId":0,"stepName":"my-wait-step","stepType":"Wait","waitEventId":"my-event-id","timeout":"20s","concurrent":2,"targetStep":1}' ,
235
237
destination : WORKFLOW_ENDPOINT ,
236
238
headers : {
239
+ "upstash-feature-set" : "WF_NoDelete" ,
237
240
"content-type" : "application/json" ,
238
241
"upstash-forward-upstash-workflow-sdk-version" : "1" ,
239
242
"upstash-method" : "POST" ,
@@ -248,6 +251,7 @@ describe("context tests", () => {
248
251
body : '{"stepId":0,"stepName":"my-run-step","stepType":"Run","concurrent":2,"targetStep":2}' ,
249
252
destination : WORKFLOW_ENDPOINT ,
250
253
headers : {
254
+ "upstash-feature-set" : "WF_NoDelete" ,
251
255
"content-type" : "application/json" ,
252
256
"upstash-forward-upstash-workflow-sdk-version" : "1" ,
253
257
"upstash-method" : "POST" ,
0 commit comments