@@ -326,7 +326,7 @@ describe("runDoctorConfigPreflight state migration", () => {
326326 expect ( startupMigrationLeaseRelease ) . toHaveBeenCalledOnce ( ) ;
327327 } ) ;
328328
329- it ( "records the startup migration checkpoint when plugin repair warnings are nonblocking " , async ( ) => {
329+ it ( "blocks gateway readiness when plugin repair warnings remain " , async ( ) => {
330330 needsStartupMigrationCheckpoint . mockReturnValue ( true ) ;
331331 runPostCorePluginConvergence . mockResolvedValueOnce (
332332 makeStartupConvergenceResult ( {
@@ -339,16 +339,15 @@ describe("runDoctorConfigPreflight state migration", () => {
339339 } ) ,
340340 ) ;
341341
342- await runDoctorConfigPreflight ( {
343- migrateLegacyConfig : false ,
344- invalidConfigNote : false ,
345- requireStartupMigrationCheckpoint : true ,
346- } ) ;
342+ await expect (
343+ runDoctorConfigPreflight ( {
344+ migrateLegacyConfig : false ,
345+ invalidConfigNote : false ,
346+ requireStartupMigrationCheckpoint : true ,
347+ } ) ,
348+ ) . rejects . toThrow ( "Configured plugin discord is not installed" ) ;
347349
348- expect ( recordSuccessfulStartupMigrations ) . toHaveBeenCalledWith ( {
349- env : process . env ,
350- lease : startupMigrationLease ,
351- } ) ;
350+ expect ( recordSuccessfulStartupMigrations ) . not . toHaveBeenCalled ( ) ;
352351 expect ( note ) . toHaveBeenCalledWith (
353352 "- Configured plugin discord is not installed. Run `openclaw update repair` to retry plugin repair." ,
354353 "Doctor warnings" ,
0 commit comments