refactor(core): move wellknown refresh to config

This commit is contained in:
Dax Raad
2026-07-16 14:32:46 -04:00
parent e4a16830f1
commit a7cf21e157
3 changed files with 20 additions and 16 deletions
-4
View File
@@ -104,11 +104,7 @@ serviceIt.live("refreshes changed manifests", () =>
const wellknown = yield* WellKnown.Service
const events = yield* EventV2.Service
yield* wellknown.add(server.url.origin)
const refreshed = yield* events
.subscribe(WellKnown.Event.Updated)
.pipe(Stream.take(1), Stream.runCollect, Effect.forkScoped)
expect(yield* wellknown.refresh()).toBe(false)
expect(yield* Fiber.join(refreshed)).toHaveLength(1)
const changed = yield* events
.subscribe(WellKnown.Event.Updated)