Fix lightclient WASM tests (#1287)

* Remove 1 explicit bootnode; I think it stopped working so our tests did too

* Remove comment

Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com>

---------

Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com>
This commit is contained in:
James Wilson
2023-11-23 16:58:03 +00:00
committed by GitHub
parent 2c528854da
commit 2fe7b5c14c
2 changed files with 53 additions and 57 deletions
@@ -32,11 +32,7 @@ wasm_bindgen_test::wasm_bindgen_test_configure!(run_in_browser);
#[wasm_bindgen_test]
async fn light_client_works() {
// Use a polkadot trusted DNS.
let api: LightClient<PolkadotConfig> = LightClientBuilder::new()
.bootnodes(
["/dns/polkadot-connect-0.parity.io/tcp/443/wss/p2p/12D3KooWEPmjoRpDSUuiTjvyNDd8fejZ9eNWH5bE965nyBMDrB4o"]
)
.build_from_url("wss://rpc.polkadot.io:443")
.await
.expect("Cannot construct light client");