Skip to content

Commit

Permalink
update: draft #1 all da-tests running
Browse files Browse the repository at this point in the history
  • Loading branch information
heemankv committed Jul 27, 2024
1 parent a2f079c commit d22ce38
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 1 deletion.
23 changes: 23 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions crates/orchestrator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ with_mongodb = ["mongodb"]
with_sqs = ["omniqueue"]

[dev-dependencies]
serial_test = "0.5"
hyper = { version = "0.14", features = ["full"] }
rstest = { workspace = true }
httpmock = { workspace = true, features = ["remote"] }
1 change: 1 addition & 0 deletions crates/orchestrator/src/jobs/da_job/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ impl Job for DaJob {

async fn process_job(&self, config: &Config, job: &mut JobItem) -> Result<String> {
let block_no = job.internal_id.parse::<u64>()?;

let state_update = config.starknet_client().get_state_update(BlockId::Number(block_no)).await?;

let state_update = match state_update {
Expand Down
3 changes: 2 additions & 1 deletion crates/orchestrator/src/tests/jobs/da_job/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ use majin_blob_types::state_diffs::UnorderedEq;
// use majin_blob_types::serde;
use crate::data_storage::MockDataStorage;
use rstest::rstest;
use serial_test::serial;

use crate::tests::common::init_config;

Expand All @@ -50,7 +51,7 @@ use crate::tests::common::init_config;
110
)]
#[tokio::test]

#[serial]
async fn test_da_job_process_job_failure_on_impossible_blob_length(
#[case] state_update_file: String,
#[case] noances_file: String,
Expand Down

0 comments on commit d22ce38

Please sign in to comment.