From a5c67956e73ac9fcf7c4d9e05a2f883b516445e5 Mon Sep 17 00:00:00 2001 From: Harry Solovay Date: Wed, 12 Oct 2022 16:24:25 -0400 Subject: [PATCH 1/2] temporarily ignore failing test --- rpc/providers/proxy.test.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/rpc/providers/proxy.test.ts b/rpc/providers/proxy.test.ts index 4a4c74e4b..7feb6117d 100644 --- a/rpc/providers/proxy.test.ts +++ b/rpc/providers/proxy.test.ts @@ -8,6 +8,7 @@ Deno.test({ name: "Proxy RPC Client", sanitizeResources: false, sanitizeOps: false, + ignore: true, async fn(t) { const client = U.throwIfError(await proxyClient(polkadot)); From 4794472090c3dd685e50ee5624c47e67b01b38f7 Mon Sep 17 00:00:00 2001 From: Harry Solovay Date: Wed, 12 Oct 2022 16:29:08 -0400 Subject: [PATCH 2/2] re-enable test, use local node instead of polkadot --- rpc/providers/proxy.test.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/rpc/providers/proxy.test.ts b/rpc/providers/proxy.test.ts index 7feb6117d..cb24a2674 100644 --- a/rpc/providers/proxy.test.ts +++ b/rpc/providers/proxy.test.ts @@ -1,5 +1,5 @@ import { assert } from "../../deps/std/testing/asserts.ts"; -import { polkadot } from "../../known/mod.ts"; +import { config as testConfig } from "../../test_util/mod.ts"; import * as U from "../../util/mod.ts"; import * as msg from "../messages.ts"; import { proxyClient } from "./proxy.ts"; @@ -8,9 +8,9 @@ Deno.test({ name: "Proxy RPC Client", sanitizeResources: false, sanitizeOps: false, - ignore: true, async fn(t) { - const client = U.throwIfError(await proxyClient(polkadot)); + const config = await testConfig(); + const client = U.throwIfError(await proxyClient(config)); await t.step("call", async () => { const raw = await client.call("state_getMetadata", []); @@ -18,7 +18,7 @@ Deno.test({ }); await t.step("subscribe", async () => { - const result: msg.NotifMessage[] = []; + const result: msg.NotifMessage[] = []; let i = 1; await client.subscribe("chain_subscribeAllHeads", [], (stop) => { return (message) => { @@ -35,5 +35,6 @@ Deno.test({ }); await client.close(); + config.close(); }, });