@@ -66,15 +66,19 @@ const setup = async (props?: SetupProps): Promise<{ id: string }> => {
6666 return { id } ;
6767} ;
6868
69- setDefaultTimeout ( 60 * 5000 ) ;
69+ setDefaultTimeout ( 60 * 1000 ) ;
7070
7171describe ( "Aider" , async ( ) => {
7272 beforeAll ( async ( ) => {
7373 await runTerraformInit ( import . meta. dir ) ;
7474 } ) ;
7575
7676 test ( "happy-path" , async ( ) => {
77- const { id } = await setup ( ) ;
77+ const { id } = await setup ( {
78+ moduleVariables : {
79+ ai_model : "gemini" ,
80+ } ,
81+ } ) ;
7882 await execModuleScript ( id ) ;
7983 await expectAgentAPIStarted ( id ) ;
8084 } ) ;
@@ -84,6 +88,7 @@ describe("Aider", async () => {
8488 const { id } = await setup ( {
8589 moduleVariables : {
8690 ai_api_key : apiKey ,
91+ ai_model : "gemini" ,
8792 } ,
8893 } ) ;
8994 await execModuleScript ( id ) ;
@@ -99,6 +104,7 @@ describe("Aider", async () => {
99104 const { id } = await setup ( {
100105 moduleVariables : {
101106 folder,
107+ ai_model : "gemini" ,
102108 } ,
103109 } ) ;
104110 await execModuleScript ( id ) ;
@@ -115,6 +121,7 @@ describe("Aider", async () => {
115121 experiment_pre_install_script : "#!/bin/bash\necho 'pre-install-script'" ,
116122 experiment_post_install_script :
117123 "#!/bin/bash\necho 'post-install-script'" ,
124+ ai_model : "gemini" ,
118125 } ,
119126 } ) ;
120127 await execModuleScript ( id ) ;
@@ -135,6 +142,7 @@ describe("Aider", async () => {
135142 const { id } = await setup ( {
136143 moduleVariables : {
137144 system_prompt,
145+ ai_model : "gemini" ,
138146 } ,
139147 } ) ;
140148 await execModuleScript ( id ) ;
@@ -151,10 +159,12 @@ describe("Aider", async () => {
151159 const { id } = await setup ( {
152160 moduleVariables : {
153161 ai_api_key : apiKey ,
154- task_prompt : prompt ,
162+ ai_model : "gemini" ,
155163 } ,
156164 } ) ;
157- await execModuleScript ( id ) ;
165+ await execModuleScript ( id , {
166+ ARG_TASK_PROMPT : `${ prompt } ` ,
167+ } ) ;
158168 const resp = await readFileContainer (
159169 id ,
160170 "/home/coder/.aider-module/agentapi-start.log" ,
0 commit comments