diff options
-rw-r--r-- | .cargo/config.toml | 2 | ||||
-rw-r--r-- | Cargo.toml | 6 | ||||
-rw-r--r-- | helix-term/src/application.rs | 4 | ||||
-rw-r--r-- | helix-term/tests/test/write.rs | 2 |
4 files changed, 8 insertions, 6 deletions
diff --git a/.cargo/config.toml b/.cargo/config.toml index 5d615566..b016eca3 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,3 +1,3 @@ [alias] xtask = "run --package xtask --" -integration-test = "test --features integration --workspace --test integration" +integration-test = "test --features integration --profile integration --workspace --test integration" @@ -25,3 +25,9 @@ lto = "fat" codegen-units = 1 # strip = "debuginfo" # TODO: or strip = true opt-level = 3 + +[profile.integration] +inherits = "test" +package.helix-core.opt-level = 2 +package.helix-tui.opt-level = 2 +package.helix-term.opt-level = 2 diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs index 05ceb874..a1685fcf 100644 --- a/helix-term/src/application.rs +++ b/helix-term/src/application.rs @@ -277,10 +277,6 @@ impl Application { Ok(app) } - #[cfg(feature = "integration")] - async fn render(&mut self) {} - - #[cfg(not(feature = "integration"))] async fn render(&mut self) { let mut cx = crate::compositor::Context { editor: &mut self.editor, diff --git a/helix-term/tests/test/write.rs b/helix-term/tests/test/write.rs index d0128edc..bbf14fc2 100644 --- a/helix-term/tests/test/write.rs +++ b/helix-term/tests/test/write.rs @@ -70,7 +70,7 @@ async fn test_write_quit() -> anyhow::Result<()> { async fn test_write_concurrent() -> anyhow::Result<()> { let mut file = tempfile::NamedTempFile::new()?; let mut command = String::new(); - const RANGE: RangeInclusive<i32> = 1..=5000; + const RANGE: RangeInclusive<i32> = 1..=1000; let mut app = helpers::AppBuilder::new() .with_file(file.path(), None) .build()?; |