Skip to content

Commit

Permalink
Fix fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Jouzo committed Jan 9, 2024
1 parent 2bf6899 commit e453a3e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
12 changes: 7 additions & 5 deletions lib/ain-ocean/src/repository/test/block_test.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
#[cfg(test_off)]
mod tests {
use super::*;
use crate::data_acces::block::BlockDb;
use crate::database::db_manager::SortOrder;
use crate::database::db_manager::{ColumnFamilyOperations, RocksDB};
use crate::model::block::Block;
use tempdir::TempDir;

use super::*;
use crate::{
data_acces::block::BlockDb,
database::db_manager::{ColumnFamilyOperations, RocksDB, SortOrder},
model::block::Block,
};

pub fn create_dummy_block(height: i32) -> Block {
Block {
id: "1".to_string(),
Expand Down
11 changes: 7 additions & 4 deletions lib/ain-ocean/src/repository/test/masternode_test.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
#[cfg(test_off)]
mod tests {
use super::*;
use crate::data_acces::masternode::MasterNodeDB;
use crate::database::db_manager::{RocksDB, SortOrder};
use crate::model::masternode::{HistoryItem, Masternode, MasternodeBlock};
use chrono::Utc;
use tempfile::tempdir;

use super::*;
use crate::{
data_acces::masternode::MasterNodeDB,
database::db_manager::{RocksDB, SortOrder},
model::masternode::{HistoryItem, Masternode, MasternodeBlock},
};

fn setup_test_db() -> MasterNodeDB {
let temp_dir = tempdir().unwrap();
let db = RocksDB::new(temp_dir.path().to_str().unwrap()).unwrap(); // Adjust this according to your RocksDB struct
Expand Down

0 comments on commit e453a3e

Please sign in to comment.