(options: { readonly entityId: string; readonly tag: string })
| 63 | |
| 64 | describe.concurrent("RunnerServer", () => { |
| 65 | const makeRequest = (options: { readonly entityId: string; readonly tag: string }) => |
| 66 | Effect.gen(function*() { |
| 67 | const sharding = yield* Sharding.Sharding |
| 68 | const snowflakeGen = yield* Snowflake.Generator |
| 69 | const entityId = EntityId.make(options.entityId) |
| 70 | return { |
| 71 | _tag: "Request" as const, |
| 72 | requestId: snowflakeGen.unsafeNext(), |
| 73 | address: EntityAddress.make({ |
| 74 | shardId: sharding.getShardId(entityId, BadReplyEntity.getShardGroup(entityId)), |
| 75 | entityType: EntityType.EntityType.make("BadReplyEntity"), |
| 76 | entityId |
| 77 | }), |
| 78 | tag: options.tag, |
| 79 | payload: { id: 1 }, |
| 80 | headers: Headers.empty |
| 81 | } |
| 82 | }) |
| 83 | |
| 84 | it.scoped("a reply that fails to serialize fails only its own request", () => |
| 85 | Effect.gen(function*() { |
no test coverage detected