Skip to content

Commit

Permalink
test: try higher wait times in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
al3mart committed Dec 12, 2024
1 parent c03f658 commit 3e8266d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/pop-cli/src/commands/up/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,7 @@ mod tests {
use url::Url;

const WALLET_INT_URI: &str = "http://127.0.0.1:9090";
const WAIT_TIME: u64 = 20000;

// This struct implements the [`Payload`] trait and is used to submit
// pre-encoded SCALE call data directly, without the dynamic construction of transactions.
Expand Down Expand Up @@ -527,7 +528,7 @@ mod tests {
// Execute the command.
let task_handle = tokio::spawn(up_contract_opts.clone().execute());
// Wait a moment for the server to start
sleep(Duration::from_millis(10000)).await;
sleep(Duration::from_millis(WAIT_TIME)).await;

// Request payload from server.
let response = reqwest::get(&format!("{}/payload", WALLET_INT_URI))
Expand Down Expand Up @@ -586,7 +587,7 @@ mod tests {
// Execute the command.
let task_handle = tokio::spawn(up_contract_opts.clone().execute());
// Wait a moment for the server to start
sleep(Duration::from_millis(10000)).await;
sleep(Duration::from_millis(WAIT_TIME)).await;

// Request payload from server.
let response = reqwest::get(&format!("{}/payload", WALLET_INT_URI))
Expand Down
1 change: 1 addition & 0 deletions crates/pop-cli/src/common/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ mod tests {
// This is a helper test for an actual running pop CLI.
// It can serve as the "frontend" to query the payload, sign it
// and submit back to the CLI.
#[ignore]
#[tokio::test]
async fn sign_call_data() -> anyhow::Result<()> {
use subxt::{config::DefaultExtrinsicParamsBuilder as Params, tx::Payload};
Expand Down

0 comments on commit 3e8266d

Please sign in to comment.