diff --git a/rpc/smoldot.test.ts b/rpc/smoldot.test.ts index ee54c8f7a..0f18b061a 100644 --- a/rpc/smoldot.test.ts +++ b/rpc/smoldot.test.ts @@ -59,9 +59,18 @@ Deno.test({ assertEquals((await message.params?.result as any).event, "initialized") }) - await t.step("invalid chain spec", async () => { - await assertRejects(async () => new SmoldotConnection({ relayChainSpec: "" }), AddChainError) - }) + await t.step( + "invalid chain spec", + async () => { + await assertRejects( + async () => { + const connection = new SmoldotConnection({ relayChainSpec: "" }) + return connection.smoldotChainPending + }, + AddChainError, + ) + }, + ) }, })