@@ -164,11 +164,7 @@ const fixture = Effect.fn("fixture")(function* (
164164 Response . json (
165165 bootError
166166 ? { ok : false , ...( typeof bootError === "string" ? { error : bootError } : bootError ) }
167- : // The hub reports a serial only for emulators; a simulator keeps its UDID.
168- request . body . _tag === "Uint8Array" &&
169- new TextDecoder ( ) . decode ( request . body . body ) . includes ( '"platform":"ios"' )
170- ? { ok : true }
171- : { ok : true , serial : "emulator-5554" } ,
167+ : { ok : true , serial : "emulator-5554" } ,
172168 ) ,
173169 ) ;
174170 }
@@ -260,16 +256,14 @@ const fixture = Effect.fn("fixture")(function* (
260256 if ( runtimeFailure && runtimeFailure . _tag !== "AgentDeviceStartError" )
261257 return yield * runtimeFailure ;
262258 starts . push ( "start" ) ;
263- // A running hub reports no phase, as the real hosts do.
264- if ( starts . length === 1 )
265- yield * onPhase ( "installing" , "Updating device hub from 0.9.0 to 0.10.1…" ) ;
259+ yield * onPhase ( "installing" , "Updating device hub from 0.9.0 to 0.10.1…" ) ;
266260 return ready ;
267261 } ) ,
268262 ensureAgentReady : ( onPhase ) =>
269263 Effect . gen ( function * ( ) {
270264 if ( runtimeFailure ) return yield * runtimeFailure ;
271265 agentStarts . push ( "start" ) ;
272- if ( agentStarts . length === 1 ) yield * onPhase ( "starting" ) ;
266+ yield * onPhase ( "starting" ) ;
273267 return {
274268 ...ready ,
275269 agentDevice : { baseUrl : "http://agent.test" , token : "test" , entryPath : "/agent" } ,
@@ -361,19 +355,12 @@ describe("device setup consent", () => {
361355 reason : "daemon_lock_not_directory" ,
362356 cause : { stdout : "private startup diagnostics" , code : 1 } ,
363357 } ) ;
364- const { service, settings, discoveryErrors } = yield * fixture (
365- Effect . void ,
366- undefined ,
367- false ,
368- startupError ,
369- ) ;
358+ const { service, settings } = yield * fixture ( Effect . void , undefined , false , startupError ) ;
370359 yield * Ref . update ( settings , ( current ) => ( {
371360 ...current ,
372361 enableDeviceSupport : true ,
373362 enableAgentDeviceAccess : true ,
374363 } ) ) ;
375- yield * Ref . set ( discoveryErrors , [ { message : simctlMessage } ] ) ;
376- yield * service . list ;
377364 const error = yield * service . agentReadinessIfSupported ( ) . pipe ( Effect . flip ) ;
378365 expect ( error ) . toMatchObject ( {
379366 _tag : "DeviceHostUnavailableError" ,
@@ -385,7 +372,6 @@ describe("device setup consent", () => {
385372 expect ( ( yield * service . state ) . hostStatuses [ LOCAL_DEVICE_HOST_ID ] ) . toEqual ( {
386373 status : "failed" ,
387374 detail : startupError . message ,
388- incompletePlatforms : [ "ios" ] ,
389375 } ) ;
390376 } ) . pipe ( Effect . scoped ) ,
391377 ) ;
@@ -881,14 +867,6 @@ it.effect(
881867 } ) ;
882868 yield * service . agentReadinessIfSupported ( ) ;
883869 expect ( ( yield * service . state ) . hostStatuses . local ) . toEqual ( failed . hostStatuses . local ) ;
884- yield * service . setHostStatus ( LOCAL_DEVICE_HOST_ID , {
885- status : "starting" ,
886- detail : "Reconnecting to device host…" ,
887- } ) ;
888- yield * service . setHostStatus ( LOCAL_DEVICE_HOST_ID , { status : "ready" } ) ;
889- const reconnected = yield * service . state ;
890- expect ( reconnected . hostStatuses . local ) . toEqual ( failed . hostStatuses . local ) ;
891- expect ( reconnected . hostStatusDetail ) . toBe ( simctlMessage ) ;
892870 yield * Ref . set ( discoveryErrors , [ ] ) ;
893871 const recovered = yield * service . list ;
894872 expect ( recovered . devices . map ( ( device ) => device . id ) ) . toEqual ( [ "Pixel_API_35" ] ) ;
@@ -954,25 +932,6 @@ it.effect("does not open a retained pre-boot entry when the post-boot listing is
954932 yield * TestClock . adjust ( "40 seconds" ) ;
955933 expect ( ( yield * Fiber . join ( opening ) ) . _tag ) . toBe ( "DeviceNotFoundError" ) ;
956934 expect ( ( yield * android . service . state ) . sessions ) . toEqual ( [ ] ) ;
957-
958- const ios = yield * fixture ( Effect . suspend ( ( ) => afterBoot . run ) ) ;
959- afterBoot . run = Effect . sync ( ( ) => {
960- ios . devices . length = 0 ;
961- } ) . pipe ( Effect . andThen ( Ref . set ( ios . discoveryErrors , [ { message : simctlMessage } ] ) ) ) ;
962- ios . devices . push ( {
963- id : DeviceId . make ( "iphone" ) ,
964- name : "iPhone" ,
965- platform : "ios" ,
966- version : "iOS 26" ,
967- booted : false ,
968- physical : false ,
969- } ) ;
970- yield * ios . service . configure ( { enabled : true } ) ;
971- const error = yield * ios . service
972- . open ( { threadId : ThreadId . make ( "boot-simctl" ) , deviceId : "iphone" , platform : "ios" } )
973- . pipe ( Effect . flip ) ;
974- expect ( error . _tag ) . toBe ( "DeviceNotFoundError" ) ;
975- expect ( ( yield * ios . service . state ) . sessions ) . toEqual ( [ ] ) ;
976935 } ) . pipe ( Effect . scoped ) ,
977936) ;
978937
0 commit comments