Skip to content

Commit

Permalink
try2
Browse files Browse the repository at this point in the history
  • Loading branch information
imabdulbasit committed Nov 22, 2024
1 parent c794446 commit 588fa38
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ jobs:
run: |
cargo nextest run --archive-file nextest-archive-postgres.tar.zst --verbose --no-fail-fast \
--workspace-remap $PWD $(if [ "${{ matrix.version }}" == "2" ]; then echo " smoke"; fi)
timeout-minutes: 10
timeout-minutes: 20

- name: Dump process compose services logs
if: always()
Expand Down
2 changes: 1 addition & 1 deletion tests/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const L1_PROVIDER_RETRY_INTERVAL: Duration = Duration::from_secs(1);
// TODO add to .env
const RECIPIENT_ADDRESS: &str = "0x0000000000000000000000000000000000000000";
/// Duration in seconds to wait before declaring the chain deceased.
const SEQUENCER_BLOCKS_TIMEOUT: u64 = 120;
const SEQUENCER_BLOCKS_TIMEOUT: u64 = 300;

#[derive(Clone, Debug)]
pub struct TestConfig {
Expand Down
10 changes: 3 additions & 7 deletions tests/upgrades.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use espresso_types::{FeeVersion, MarketplaceVersion};
use futures::StreamExt;
use vbs::version::StaticVersionType;

const SEQUENCER_BLOCKS_TIMEOUT: u64 = 120;
const SEQUENCER_BLOCKS_TIMEOUT: u64 = 300;

#[tokio::test(flavor = "multi_thread")]
async fn test_upgrade() -> Result<()> {
Expand Down Expand Up @@ -32,9 +32,6 @@ async fn test_upgrade() -> Result<()> {
clients[0].subscribe_headers(0).await?,
clients[1].subscribe_headers(0).await?,
];
let subscriptions_size = subscriptions.len();

let mut upgraded_nodes: usize = 0;

for mut stream in subscriptions {
while let Some(header) = stream.next().await {
Expand All @@ -46,9 +43,8 @@ async fn test_upgrade() -> Result<()> {
assert_eq!(header.version(), versions.0)
}

// Track how many nodes have been upgraded
if header.version() != versions.1 {
continue;
if header.version() == versions.1 {
break;
}

if header.height() > SEQUENCER_BLOCKS_TIMEOUT {
Expand Down

0 comments on commit 588fa38

Please sign in to comment.