Skip to content

Commit

Permalink
Move test specs.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmpfs committed Nov 27, 2023
1 parent db9cf3c commit ea2ad1c
Show file tree
Hide file tree
Showing 9 changed files with 81 additions and 90 deletions.
2 changes: 0 additions & 2 deletions tests/integration/local/mod.rs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ use sos_net::sdk::{

const TEST_ID: &str = "change_password";

/// Tests changing the encryption password of a folder.
#[tokio::test]
async fn integration_change_password() -> Result<()> {
let mut dirs = setup(TEST_ID, 1).await?;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
use anyhow::Result;

use crate::test_utils::mock_note;

use tempfile::tempdir;

use secrecy::ExposeSecret;
use sos_net::sdk::{
account::FolderStorage,
Expand All @@ -21,20 +18,16 @@ macro_rules! commit_count {
}};
}

//const TEST_ID: &str = "local_provider";

/// Tests compacting a folder event log.
#[tokio::test]
async fn integration_local_provider_file() -> Result<()> {
async fn integration_compact_folder() -> Result<()> {
let dir = tempdir()?;
let signer = Box::new(SingleParty::new_random());
let user_id = signer.address()?.to_string();
let mut storage =
FolderStorage::new(user_id, Some(dir.path().to_path_buf())).await?;
run_local_storage_tests(&mut storage).await?;
Ok(())
}
FolderStorage::new(
user_id, Some(dir.path().to_path_buf())).await?;

async fn run_local_storage_tests(storage: &mut FolderStorage) -> Result<()> {
// Create an account with default login vault
let (_, passphrase, _) = storage.create_account(None, None).await?;

Expand Down
Loading

0 comments on commit ea2ad1c

Please sign in to comment.