Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gurinderu committed May 30, 2024
1 parent c4d2ebb commit 94da7ed
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 11 deletions.
5 changes: 5 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 aquamarine/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,4 @@ enum_dispatch = { workspace = true }
tempfile = { workspace = true }
core-distributor = { workspace = true, features = ["dummy"] }
cpu-utils = { workspace = true }
ccp-test-utils = { workspace = true }
2 changes: 1 addition & 1 deletion aquamarine/src/plumber.rs
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@ mod tests {
let key_storage = Arc::new(key_storage);

let core_distributor = Arc::new(DummyCoreDistibutor::new());
let thread_pinner = Arc::new(cpu_utils::pinning::DUMMY);
let thread_pinner = Arc::new(ccp_test_utils::pinning::DUMMY);

let scope = PeerScopes::new(
root_key_pair.get_peer_id(),
Expand Down
2 changes: 1 addition & 1 deletion crates/spell-service-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ maplit = { workspace = true }
tokio = { workspace = true, features = ["macros"] }
core-distributor = { workspace = true, features = ["dummy"] }
cpu-utils = { workspace = true }

ccp-test-utils = { workspace = true }
2 changes: 1 addition & 1 deletion crates/spell-service-api/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ mod tests {
let core_distributor = DummyCoreDistibutor::new();
let core_distributor = Arc::new(core_distributor);

let thread_pinner = Arc::new(cpu_utils::pinning::DUMMY);
let thread_pinner = Arc::new(ccp_test_utils::pinning::DUMMY);

let scope = PeerScopes::new(
root_key_pair.get_peer_id(),
Expand Down
1 change: 1 addition & 0 deletions crates/workers/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ async-trait = "0.1.79"
[dev-dependencies]
core-distributor = { workspace = true, features = ["dummy"] }
cpu-utils = { workspace = true }
ccp-test-utils = { workspace = true }
tempfile = { workspace = true }
tokio = { workspace = true, features = ["macros"] }
hex = { workspace = true }
12 changes: 6 additions & 6 deletions crates/workers/src/workers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ mod tests {
let core_distributor = DummyCoreDistibutor::new();
let core_distributor = Arc::new(core_distributor);

let thread_pinner = Arc::new(cpu_utils::pinning::DUMMY);
let thread_pinner = Arc::new(ccp_test_utils::pinning::DUMMY);

// Create a new KeyStorage instance
let key_storage = Arc::new(
Expand Down Expand Up @@ -690,7 +690,7 @@ mod tests {
let core_distributor = DummyCoreDistibutor::new();
let core_distributor = Arc::new(core_distributor);

let thread_pinner = Arc::new(cpu_utils::pinning::DUMMY);
let thread_pinner = Arc::new(ccp_test_utils::pinning::DUMMY);
// Create a new KeyStorage instance
let key_storage = Arc::new(
KeyStorage::from_path(key_pairs_dir.clone(), root_key_pair.clone())
Expand Down Expand Up @@ -764,7 +764,7 @@ mod tests {
let core_distributor = DummyCoreDistibutor::new();
let core_distributor = Arc::new(core_distributor);

let thread_pinner = Arc::new(cpu_utils::pinning::DUMMY);
let thread_pinner = Arc::new(ccp_test_utils::pinning::DUMMY);
// Create a new KeyStorage instance
let key_storage = Arc::new(
KeyStorage::from_path(key_pairs_dir.clone(), root_key_pair.clone())
Expand Down Expand Up @@ -829,7 +829,7 @@ mod tests {
let core_distributor = DummyCoreDistibutor::new();
let core_distributor = Arc::new(core_distributor);

let thread_pinner = Arc::new(cpu_utils::pinning::DUMMY);
let thread_pinner = Arc::new(ccp_test_utils::pinning::DUMMY);
// Create a new KeyStorage instance
let key_storage = Arc::new(
KeyStorage::from_path(key_pairs_dir.clone(), root_key_pair.clone())
Expand Down Expand Up @@ -905,7 +905,7 @@ mod tests {
let core_distributor = DummyCoreDistibutor::new();
let core_distributor = Arc::new(core_distributor);

let thread_pinner = Arc::new(cpu_utils::pinning::DUMMY);
let thread_pinner = Arc::new(ccp_test_utils::pinning::DUMMY);
// Create a new KeyStorage instance
let key_storage = Arc::new(
KeyStorage::from_path(key_pairs_dir.clone(), root_key_pair.clone())
Expand Down Expand Up @@ -988,7 +988,7 @@ mod tests {
let core_distributor = DummyCoreDistibutor::new();
let core_distributor = Arc::new(core_distributor);

let thread_pinner = Arc::new(cpu_utils::pinning::DUMMY);
let thread_pinner = Arc::new(ccp_test_utils::pinning::DUMMY);
// Create a new Workers instance
let (workers, _receiver) = Workers::from_path(
workers_dir.clone(),
Expand Down
1 change: 1 addition & 0 deletions nox/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,4 @@ log-utils = { workspace = true }
reqwest = { workspace = true }
tempfile = { workspace = true }
cpu-utils = { workspace = true }
ccp-test-utils = { workspace = true }
2 changes: 1 addition & 1 deletion nox/src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ mod tests {
.expect("can't create system services");

let core_distributor = Arc::new(DummyCoreDistibutor::new());
let thread_pinner = Arc::new(cpu_utils::pinning::DUMMY);
let thread_pinner = Arc::new(ccp_test_utils::pinning::DUMMY);

let mut node: Box<Node<AVMRunner>> = Node::new(
config,
Expand Down
1 change: 1 addition & 0 deletions particle-services/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,4 @@ tokio = { workspace = true, features = ["macros"] }
tempfile = { workspace = true }
core-distributor = { workspace = true, features = ["dummy"] }
cpu-utils = { workspace = true }
ccp-test-utils = { workspace = true }
2 changes: 1 addition & 1 deletion particle-services/src/app_services.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1279,7 +1279,7 @@ mod tests {
let root_key_pair: KeyPair = root_keypair.clone().into();

let core_distributor = Arc::new(DummyCoreDistibutor::new());
let thread_pinner = Arc::new(cpu_utils::pinning::DUMMY);
let thread_pinner = Arc::new(ccp_test_utils::pinning::DUMMY);

let scope = PeerScopes::new(
root_key_pair.get_peer_id(),
Expand Down

0 comments on commit 94da7ed

Please sign in to comment.