Skip to content

Commit

Permalink
serialize OperatorsInfoService test execution (Layr-Labs#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasArrachea authored Aug 30, 2024
1 parent a56ae68 commit 077da8d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions Cargo.lock

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

2 changes: 2 additions & 0 deletions crates/services/operatorsinfo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ futures-util.workspace = true
tokio = { workspace = true, features = ["rt-multi-thread", "macros"] }
thiserror.workspace = true
tokio-util = "0.7.11"

[dev-dependencies]
alloy-signer-local.workspace = true
eigen-testing-utils.workspace = true
Expand All @@ -31,3 +32,4 @@ eigen-client-elcontracts.workspace = true
ark-bn254.workspace = true
ark-std = {version = "0.4.0", default-features = false}
ark-ff.workspace = true
serial_test.workspace = true
4 changes: 3 additions & 1 deletion crates/services/operatorsinfo/src/operatorsinfo_inmemory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,6 @@ impl OperatorInfoServiceInMemory {

#[cfg(test)]
mod tests {

use super::*;
use alloy_primitives::{address, Bytes, U256};
use alloy_signer_local::PrivateKeySigner;
Expand All @@ -258,6 +257,7 @@ mod tests {
};
use eigen_types::operator::Operator;
use eigen_utils::get_provider;
use serial_test::serial;
use std::str::FromStr;
use std::time::{Duration, SystemTime, UNIX_EPOCH};

Expand Down Expand Up @@ -306,6 +306,7 @@ mod tests {
}

#[tokio::test]
#[serial]
async fn test_start_service_1_operator_register() {
let anvil_ws_url = "ws://localhost:8545";
let anvil_http_url = "http://localhost:8545";
Expand Down Expand Up @@ -357,6 +358,7 @@ mod tests {
}

#[tokio::test]
#[serial]
async fn test_start_service_2_operator_register() {
let anvil_ws_url = "ws://localhost:8545";
let anvil_http_url = "http://localhost:8545";
Expand Down

0 comments on commit 077da8d

Please sign in to comment.