Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

serialize OperatorsInfoService test execution #92

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading