Skip to content

Commit

Permalink
internal: Clean up tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
milesj committed Nov 28, 2024
1 parent 3c5dfc1 commit 5a5daf7
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 7 deletions.
4 changes: 2 additions & 2 deletions crates/action-graph/src/action_graph_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ pub struct ActionGraphBuilder<'app> {
workspace_graph: &'app WorkspaceGraph,

// Affected states
pub affected: Option<AffectedTracker<'app>>,
affected: Option<AffectedTracker<'app>>,
touched_files: Option<&'app FxHashSet<WorkspaceRelativePathBuf>>,

// Target tracking
Expand Down Expand Up @@ -257,7 +257,7 @@ impl<'app> ActionGraphBuilder<'app> {
reqs: &RunRequirements,
config: Option<&TaskDependencyConfig>,
) -> miette::Result<Option<NodeIndex>> {
// Create a new requirements object as we don't have our dependencies/
// Create a new requirements object as we don't want our dependencies/
// dependents to check for affected or run their own dependents!
let child_reqs = RunRequirements {
ci: reqs.ci,
Expand Down
1 change: 0 additions & 1 deletion crates/action-graph/tests/action_graph_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,6 @@ mod action_graph {
mod affected {
use super::*;
use moon_affected::AffectedBy;
use moon_test_utils2::pretty_assertions::assert_eq;

#[tokio::test]
async fn doesnt_graph_if_not_affected_by_touched_files() {
Expand Down
2 changes: 0 additions & 2 deletions crates/affected/tests/affected_tracker_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,6 @@ mod affected_projects {

#[tokio::test]
async fn deep_cycle() {
use moon_test_utils2::pretty_assertions::assert_eq;

let workspace_graph = generate_workspace_graph("projects").await;
let touched_files = FxHashSet::from_iter(["cycle-a/file.txt".into()]);

Expand Down
1 change: 0 additions & 1 deletion crates/cli/tests/run_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1020,7 +1020,6 @@ mod outputs {

mod hydration {
use super::*;
use moon_test_utils::pretty_assertions::assert_eq;

#[test]
fn reuses_cache_from_previous_run() {
Expand Down
1 change: 0 additions & 1 deletion crates/config/tests/inherited_tasks_config_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1113,7 +1113,6 @@ mod task_manager {
use moon_common::Id;
use moon_config::*;
use starbase_sandbox::locate_fixture;
use starbase_sandbox::pretty_assertions::assert_eq;

#[test]
fn loads_pkl() {
Expand Down

0 comments on commit 5a5daf7

Please sign in to comment.