@@ -198,7 +198,7 @@ test.serial('run parallel jobs', async (t) => {
198198
199199test . serial ( 'run a http adaptor job' , async ( t ) => {
200200 const job = createJob ( {
201- adaptor : '@openfn/language-http@7.2.0 ' ,
201+ adaptor : '@openfn/language-http@7.2.9 ' ,
202202 body : `get("https://jsonplaceholder.typicode.com/todos/1");
203203 fn((state) => { state.res = state.response; return state });` ,
204204 } ) ;
@@ -217,40 +217,6 @@ test.serial('run a http adaptor job', async (t) => {
217217 } ) ;
218218} ) ;
219219
220- test . serial ( 'use different versions of the same adaptor' , async ( t ) => {
221- // http@5 exported an axios global - so run this job and validate that the global is there
222- const job1 = createJob ( {
223- body : `import { axios } from "@openfn/language-http";
224- fn((s) => {
225- if (!axios) {
226- throw new Error('AXIOS NOT FOUND')
227- }
228- return s;
229- })` ,
230- adaptor : '@openfn/language-http@5.0.4' ,
231- } ) ;
232-
233- // http@6 no longer exports axios - so throw an error if we see it
234- const job2 = createJob ( {
235- body : `import { axios } from "@openfn/language-http";
236- fn((s) => {
237- if (axios) {
238- throw new Error('AXIOS FOUND')
239- }
240- return s;
241- })` ,
242- adaptor : '@openfn/language-http@6.0.0' ,
243- } ) ;
244-
245- // Just for fun, run each job a couple of times to make sure that there's no wierd caching or ordering anything
246- const steps = [ job1 , job2 , job1 , job2 ] ;
247- const attempt = createRun ( [ ] , steps , [ ] ) ;
248-
249- const result = await run ( t , attempt ) ;
250- t . log ( result ) ;
251- t . falsy ( result . errors ) ;
252- } ) ;
253-
254220test . serial ( 'Run with collections' , async ( t ) => {
255221 const job1 = createJob ( {
256222 body : `fn((state = {}) => {
@@ -270,8 +236,6 @@ test.serial('Run with collections', async (t) => {
270236 state.results.push({ key, value })
271237 });
272238 ` ,
273- // Note: for some reason 1.7.0 fails because it exports a collections ??
274- // 1.7.4 seems fine
275239 adaptor : '@openfn/language-common@1.7.4' ,
276240 } ) ;
277241 const attempt = createRun ( [ ] , [ job1 ] , [ ] ) ;
0 commit comments