Skip to content

Commit

Permalink
fix: missing merge conflicts
Browse files Browse the repository at this point in the history
Signed-off-by: Gustavo Inacio <gustavo@semiotic.ai>
  • Loading branch information
gusinacio committed Mar 4, 2024
1 parent d03d5d7 commit 7cf2ed0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 21 deletions.
25 changes: 5 additions & 20 deletions tap_core/src/tap_manager/test/manager_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
#[cfg(test)]
#[allow(clippy::too_many_arguments)]
mod manager_unit_test {
use std::{collections::HashMap, str::FromStr, sync::Arc};
use std::{
collections::{HashMap, HashSet},
str::FromStr,
sync::Arc,
};

use alloy_primitives::Address;
use alloy_sol_types::Eip712Domain;
Expand All @@ -17,7 +21,6 @@ mod manager_unit_test {
escrow_adapter_mock::EscrowAdapterMock,
executor_mock::{EscrowStorage, ExecutorMock, QueryAppraisals},
receipt_storage_adapter::ReceiptRead,
receipt_storage_adapter_mock::ReceiptStorageAdapterMock,
},
checks::ReceiptCheck,
eip_712_signed_message::EIP712SignedMessage,
Expand Down Expand Up @@ -95,24 +98,6 @@ mod manager_unit_test {
(escrow_adapter, sender_escrow_storage)
}

#[fixture]
fn receipt_adapters() -> (ReceiptStorageAdapterMock, Arc<RwLock<HashMap<u64, u128>>>) {
let receipt_storage = Arc::new(RwLock::new(HashMap::new()));

// let allocation_ids_set = Arc::new(RwLock::new(HashSet::from_iter(allocation_ids())));
// let sender_ids_set = Arc::new(RwLock::new(HashSet::from_iter(sender_ids())));
let query_appraisal_storage = Arc::new(RwLock::new(HashMap::new()));

// let receipt_checks_adapter = ReceiptChecksAdapterMock::new(
// Arc::clone(&receipt_storage),
// Arc::clone(&query_appraisal_storage),
// Arc::clone(&allocation_ids_set),
// Arc::clone(&sender_ids_set),
// );

(receipt_checks_adapter, query_appraisal_storage)
}

#[rstest]
#[case::full_checks(get_full_list_of_checks())]
// #[case::partial_checks(todo!())]
Expand Down
2 changes: 1 addition & 1 deletion tap_integration_tests/tests/showcase.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// The tests use a mock Indexer server running a tap_manager instance and a tap_aggregator to handle RAV requests.
// An Indexer checks and stores receipts. After receiving a specific number of receipts, the Indexer sends a RAV request to the aggregator.
use std::{
collections::HashMap,
collections::{HashMap, HashSet},
convert::TryInto,
net::{SocketAddr, TcpListener},
str::FromStr,
Expand Down

0 comments on commit 7cf2ed0

Please sign in to comment.