Skip to content

Commit

Permalink
Fix broken test from prev Arc->Rc commit
Browse files Browse the repository at this point in the history
  • Loading branch information
rdaum committed Jan 27, 2024
1 parent 9b9d7bd commit 31bc3da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/kernel/tests/textdump.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ mod test {
use std::fs::File;
use std::io::{BufReader, Read};
use std::path::PathBuf;
use std::rc::Rc;
use std::sync::Arc;
use text_diff::assert_diff;

Expand All @@ -40,7 +41,7 @@ mod test {
File::open(minimal_db.clone()).unwrap()
}

fn load_textdump_file(tx: Arc<dyn LoaderInterface>, path: &str) {
fn load_textdump_file(tx: Rc<dyn LoaderInterface>, path: &str) {
textdump_load(tx.clone(), PathBuf::from(path)).expect("Could not load textdump");
assert_eq!(tx.commit().unwrap(), CommitResult::Success);
}
Expand Down

0 comments on commit 31bc3da

Please sign in to comment.