Skip to content

Commit

Permalink
fix: rpc storage fixture test is invalid
Browse files Browse the repository at this point in the history
It was migrating instead of checking the current version.
  • Loading branch information
Mirko-von-Leipzig committed Jul 28, 2023
1 parent f07485a commit f99eef1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Binary file modified crates/rpc/fixtures/mainnet.sqlite
Binary file not shown.
3 changes: 1 addition & 2 deletions crates/storage/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -446,8 +446,7 @@ mod tests {

std::fs::copy(&source_path, &db_path).unwrap();

let mut database = rusqlite::Connection::open(db_path).unwrap();
migrate_database(&mut database).unwrap();
let database = rusqlite::Connection::open(db_path).unwrap();
let version = schema_version(&database).unwrap();
let expected = schema::migrations().len() + schema::BASE_SCHEMA_REVISION;

Expand Down

0 comments on commit f99eef1

Please sign in to comment.