@@ -237,7 +237,11 @@ describe("runInferenceSet Hermes routing", () => {
237237 } ,
238238 deps ,
239239 ) ,
240- ) . rejects . toThrow ( / H e r m e s i n f e r e n c e r o u t e s y n c h r o n i z a t i o n d i d n o t c o m p l e t e / ) ;
240+ ) . rejects . toMatchObject ( {
241+ name : "InferenceSetError" ,
242+ exitCode : 1 ,
243+ message : expect . stringMatching ( / H e r m e s i n f e r e n c e r o u t e s y n c h r o n i z a t i o n d i d n o t c o m p l e t e / ) ,
244+ } ) ;
241245
242246 // A failed gateway-config write leaves the old config in place; re-seeding the
243247 // dashboard from it would be pointless. The host route remains committed, but
@@ -282,9 +286,20 @@ describe("runInferenceSet Hermes routing", () => {
282286 } ,
283287 deps ,
284288 ) ,
285- ) . rejects . toThrow ( / H e r m e s i n f e r e n c e r o u t e s y n c h r o n i z a t i o n d i d n o t c o m p l e t e / ) ;
289+ ) . rejects . toMatchObject ( {
290+ name : "InferenceSetError" ,
291+ exitCode : 1 ,
292+ message : expect . stringMatching ( / H e r m e s i n f e r e n c e r o u t e s y n c h r o n i z a t i o n d i d n o t c o m p l e t e / ) ,
293+ } ) ;
286294
287295 expect ( deps . calls . writeSandboxConfig ) . toHaveBeenCalledOnce ( ) ;
296+ expect ( deps . calls . updateSandbox ) . toHaveBeenCalledWith (
297+ "hermes" ,
298+ expect . objectContaining ( {
299+ provider : "hermes-provider" ,
300+ model : "openai/gpt-5.4-mini" ,
301+ } ) ,
302+ ) ;
288303 expect ( deps . calls . seedHermesDashboardConfig ) . not . toHaveBeenCalled ( ) ;
289304 const logs = deps . calls . log . mock . calls . map ( ( call ) => String ( call [ 0 ] ) ) ;
290305 expect ( logs . some ( ( line ) => line . includes ( "failed to refresh its integrity hash" ) ) ) . toBe ( true ) ;
0 commit comments