@@ -16,7 +16,7 @@ import {
1616 platformOwnerLifecycleFixture ,
1717} from '../../__tests__/support/daemon-runtime-deps-fixture.ts' ;
1818import { lifecycleDeviceRuntimeGateway } from '../../__tests__/support/test-device-runtime-gateway.ts' ;
19- import { startDaemonRuntime } from '../http /daemon-runtime.ts' ;
19+ import { startDaemonRuntime } from './daemon-runtime.ts' ;
2020import { resolveDaemonPaths } from '@agent-device/daemon-contracts/daemon-resolution' ;
2121
2222type DaemonPaths = ReturnType < typeof resolveDaemonPaths > ;
@@ -232,7 +232,7 @@ test('a successor published during this daemon lifetime is recorded at detection
232232test ( 'the loss watch is armed only after this daemon publishes its own record' , ( ) => {
233233 // Arming before publication would report a predecessor's record as a takeover of something this
234234 // daemon never owned. Ordering is the invariant, the same way the startup-ordering guards read it.
235- const source = fs . readFileSync ( new URL ( '../http /daemon-runtime.ts' , import . meta. url ) , 'utf8' ) ;
235+ const source = fs . readFileSync ( new URL ( './daemon-runtime.ts' , import . meta. url ) , 'utf8' ) ;
236236 const published = source . indexOf ( 'publishDaemonInfo(socketPort, httpPort);' ) ;
237237 const armed = source . indexOf ( 'stopMetadataLossWatch = armDaemonMetadataLossWatch(' ) ;
238238
@@ -245,7 +245,7 @@ test('both exits tear the watch down before they touch daemon.json', () => {
245245 // deleted. The startup-failure half of this is unreachable from a test — everything after
246246 // publication needs a real toolchain — so the invariant is read off the source, the same way the
247247 // arming order above is.
248- const source = fs . readFileSync ( new URL ( '../http /daemon-runtime.ts' , import . meta. url ) , 'utf8' ) ;
248+ const source = fs . readFileSync ( new URL ( './daemon-runtime.ts' , import . meta. url ) , 'utf8' ) ;
249249 const stops = [ ...source . matchAll ( / s t o p M e t a d a t a L o s s W a t c h \( \) ; / g) ] . map ( ( m ) => m . index ) ;
250250 const finishes = [ ...source . matchAll ( / a w a i t f i n i s h D a e m o n R e g i s t r a t i o n \( / g) ] . map ( ( m ) => m . index ) ;
251251 expect ( stops ) . toHaveLength ( 2 ) ;
0 commit comments