Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 706b2e5

Browse files
committed
Re-add tests
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
1 parent d5384c5 commit 706b2e5

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

tests/benchmark_block.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ use tempfile::tempdir;
3232

3333
pub mod common;
3434

35-
static RUNTIMES: [&'static str; 3] = ["polkadot", "kusama", "westend"];
35+
static RUNTIMES: [&'static str; 4] = ["polkadot", "kusama", "westend", "rococo"];
3636

3737
/// `benchmark block` works for all dev runtimes using the wasm executor.
3838
#[tokio::test]
@@ -57,8 +57,7 @@ async fn build_chain(runtime: &str, base_path: &Path) -> Result<(), String> {
5757
.args(["--chain", &runtime, "--force-authoring", "--alice"])
5858
.arg("-d")
5959
.arg(base_path)
60-
.arg("--port")
61-
.arg("33034")
60+
.arg("--no-hardware-benchmarks")
6261
.spawn()
6362
.unwrap();
6463

tests/benchmark_extrinsic.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ use assert_cmd::cargo::cargo_bin;
1818
use std::{process::Command, result::Result};
1919

2020
static RUNTIMES: [&'static str; 4] = ["polkadot", "kusama", "westend", "rococo"];
21+
2122
static EXTRINSICS: [(&'static str, &'static str); 2] =
2223
[("system", "remark"), ("balances", "transfer_keep_alive")];
2324

tests/benchmark_overhead.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use assert_cmd::cargo::cargo_bin;
1818
use std::{process::Command, result::Result};
1919
use tempfile::tempdir;
2020

21-
static RUNTIMES: [&'static str; 3] = ["polkadot", "kusama", "westend"];
21+
static RUNTIMES: [&'static str; 4] = ["polkadot", "kusama", "westend", "rococo"];
2222

2323
/// `benchmark overhead` works for all dev runtimes.
2424
#[test]

tests/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,6 @@ pub fn find_ws_url_from_output(read: impl Read + Send) -> (String, String) {
9191

9292
Some(format!("ws://{}", sock_addr))
9393
})
94-
.expect("We should get a WebSocket address");
94+
.expect(&format!("Could not find WebSocket address in process output:\n{}", &data));
9595
(ws_url, data)
9696
}

0 commit comments

Comments
 (0)