Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KATT committed Oct 20, 2023
1 parent f4e2184 commit 4dfbca0
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/async/sse.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,14 @@ test("SSE response test", async () => {
});

expect(messages).toMatchInlineSnapshot(`
[
"{\\"json\\":{\\"foo\\":\\"bar\\",\\"iterable\\":[\\"AsyncIterable\\",0,\\"__tson\\"],\\"promise\\":[\\"Promise\\",1,\\"__tson\\"],\\"rejectedPromise\\":[\\"Promise\\",2,\\"__tson\\"]},\\"nonce\\":\\"__tson\\"}",
"[0,[0,0]]",
"[1,[0,42]]",
"[2,[1,{}]]",
"[0,[0,1]]",
]
`);
[
"{\\"json\\":{\\"iterable\\":[\\"AsyncIterable\\",0,\\"__tson\\"]},\\"nonce\\":\\"__tson\\"}",
"[0,[0,0]]",
"[0,[0,1]]",
"[0,[0,2]]",
"[0,[0,3]]",
]
`);
}

{
Expand Down Expand Up @@ -108,7 +108,7 @@ test("SSE response test", async () => {
}
});

test("SSE handle reconnects", async () => {
test.only("handle reconnects when server dies", async () => {

Check failure on line 111 in src/async/sse.test.ts

View workflow job for this annotation

GitHub Actions / lint

test.only not permitted
let i = 0;
let kill = false;
function createMockObj() {
Expand Down

0 comments on commit 4dfbca0

Please sign in to comment.