From 774091b550cac6df4f25127adb4047cf4334b973 Mon Sep 17 00:00:00 2001 From: sneurlax Date: Mon, 14 Oct 2024 21:35:00 -0500 Subject: do not use libloading --- impls/monero.rs/tests/integration_tests.rs | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'impls/monero.rs/tests') diff --git a/impls/monero.rs/tests/integration_tests.rs b/impls/monero.rs/tests/integration_tests.rs index 168e882..beb28e2 100644 --- a/impls/monero.rs/tests/integration_tests.rs +++ b/impls/monero.rs/tests/integration_tests.rs @@ -1,4 +1,4 @@ -use monero_rust::{WalletManager, network, WalletError, WalletResult}; +use monero_c_rust::{WalletManager, network, WalletError, WalletResult}; use std::fs; use std::sync::Arc; use std::time::Instant; @@ -61,7 +61,7 @@ fn setup() -> WalletResult<(Arc, TempDir)> { println!("Creating WalletManager..."); let start = Instant::now(); - let manager = WalletManager::new(None)?; + let manager = WalletManager::new()?; println!("WalletManager creation took {:?}", start.elapsed()); Ok((manager, temp_dir)) @@ -255,11 +255,4 @@ fn test_wallet_error_display() { }, _ => panic!("Expected WalletErrorCode variant"), } - - // Test WalletError::LibraryLoadError variant. - let error = WalletError::LibraryLoadError("Failed to load library".to_string()); - match error { - WalletError::LibraryLoadError(msg) => assert_eq!(msg, "Failed to load library"), - _ => panic!("Expected LibraryLoadError variant"), - } } -- cgit v1.2.3