Skip to content

Commit 4ca89a4

Browse files
test(relay): adapt sounds-off delivery test to async job signing; drop duplicate client test
AI-assisted; verified with the tests and tools listed above.
1 parent 416a0b7 commit 4ca89a4

2 files changed

Lines changed: 1 addition & 23 deletions

File tree

‎infra/relay/src/agentActivity/ApnsClient.test.ts‎

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -204,28 +204,6 @@ describe("ApnsClient", () => {
204204
}).pipe(Effect.provide(layerTest)),
205205
);
206206

207-
it.effect("keeps a sounds-off alert silent when shortening it to fit 4096 bytes", () =>
208-
Effect.gen(function* () {
209-
const apns = yield* ApnsClient.ApnsClient;
210-
const request = apns.makeLiveActivityRequest({
211-
event: "end",
212-
token: "token",
213-
state: sanitizeAgentActivityAggregateState({
214-
...state,
215-
activities: [{ ...state.activities[0]!, threadTitle: "界".repeat(200) }],
216-
}),
217-
alert: { title: "界".repeat(800), body: "界".repeat(800) },
218-
soundsEnabled: false,
219-
nowEpochSeconds: Math.floor(now.epochMilliseconds / 1_000),
220-
nowIso: DateTime.formatIso(now),
221-
});
222-
223-
const payload = request.payload as { aps: { alert: { title: string } } };
224-
expect(payload.aps.alert.title).toMatch(/^界+\.\.\.$/);
225-
expect(payload.aps.alert).not.toHaveProperty("sound");
226-
}).pipe(Effect.provide(layerTest)),
227-
);
228-
229207
it.effect("fits Live Activity updates at every sanitizer cap within 4096 bytes", () =>
230208
Effect.gen(function* () {
231209
const apns = yield* ApnsClient.ApnsClient;

‎infra/relay/src/agentActivity/ApnsDeliveries.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -886,7 +886,7 @@ describe("ApnsDeliveries", () => {
886886

887887
return Effect.gen(function* () {
888888
const deliveries = yield* ApnsDeliveries.ApnsDeliveries;
889-
const result = yield* deliveries.processSignedJob(signed);
889+
const result = yield* deliveries.processSignedJob(yield* signed);
890890

891891
expect(result.ok).toBe(true);
892892
expect(requests).toHaveLength(1);

0 commit comments

Comments
 (0)