summaryrefslogtreecommitdiffstats
path: root/src/interactive/app/tests/utils.rs
diff options
context:
space:
mode:
authorPiotr Wach <pwach@bloomberg.net>2024-01-07 09:44:10 +0000
committerPiotr Wach <pwach@bloomberg.net>2024-01-07 09:44:10 +0000
commit13c381bebc6a64e553ec11793ec8880f868e712c (patch)
tree23a8504e298dc8b0bb75926587b5d1a0a3ddf87e /src/interactive/app/tests/utils.rs
parente53036ad84b71e1121588929fe4653a7ababbf67 (diff)
Clean-up init function
Diffstat (limited to 'src/interactive/app/tests/utils.rs')
-rw-r--r--src/interactive/app/tests/utils.rs18
1 files changed, 5 insertions, 13 deletions
diff --git a/src/interactive/app/tests/utils.rs b/src/interactive/app/tests/utils.rs
index e5c432a..64d561c 100644
--- a/src/interactive/app/tests/utils.rs
+++ b/src/interactive/app/tests/utils.rs
@@ -175,19 +175,11 @@ pub fn initialized_app_and_terminal_with_closure(
let mut terminal = new_test_terminal()?;
std::env::set_current_dir(Path::new(env!("CARGO_MANIFEST_DIR")))?;
- let (_, keys_rx) = crossbeam::channel::unbounded();
- let input_paths = fixture_paths.iter().map(|c| convert(c.as_ref())).collect();
- let app = TerminalApp::initialize(
- &mut terminal,
- ByteFormat::Metric,
- input_paths,
- keys_rx,
- )?
- .map(|(_, app)| app);
- Ok((
- terminal,
- app.expect("app that didn't try to abort iteration"),
- ))
+ // let (_, keys_rx) = crossbeam::channel::unbounded();
+ // let input_paths = fixture_paths.iter().map(|c| convert(c.as_ref())).collect();
+ let app = TerminalApp::initialize(&mut terminal, ByteFormat::Metric)?;
+
+ Ok((terminal, app))
// WalkOptions {
// threads: 1,