Skip to content

Commit

Permalink
chore(tui): fix lint warnings in tests (#9062)
Browse files Browse the repository at this point in the history
### Description

We were getting lint warnings from not using the result of some
functions with in these tests.

### Testing Instructions

`cargo test -p turborepo-ui ` should no longer produce build warnings.
  • Loading branch information
chris-olszewski authored Aug 27, 2024
1 parent f976b46 commit 17d988e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions crates/turborepo-ui/src/tui/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,7 @@ mod test {
);

// Restart b
app.restart_tasks(vec!["b".to_string()]);
app.restart_tasks(vec!["b".to_string()])?;
app.start_task("b", OutputLogs::Full)?;
assert_eq!(
(
Expand All @@ -896,7 +896,7 @@ mod test {
);

// Restart a
app.restart_tasks(vec!["a".to_string()]);
app.restart_tasks(vec!["a".to_string()])?;
app.start_task("a", OutputLogs::Full)?;
assert_eq!(
(
Expand Down Expand Up @@ -962,13 +962,13 @@ mod test {
app.insert_stdin("b", Some(Vec::new())).unwrap();

// Interact and type "hello"
app.interact();
app.interact()?;
app.forward_input(b"hello!").unwrap();

// Exit interaction and move up
app.interact();
app.interact()?;
app.previous();
app.interact();
app.interact()?;
app.forward_input(b"world").unwrap();

assert_eq!(
Expand Down

0 comments on commit 17d988e

Please sign in to comment.