Skip to content

Commit

Permalink
[preview] Updated Test Plans and Suits to use the new safe Common Enr…
Browse files Browse the repository at this point in the history
…icher method (#1984)

Updated Test Plans and Suits to use the new safe common enricher import
to fix #1983
  • Loading branch information
MrHinsh authored Mar 15, 2024
1 parent 433f23a commit bfc89d1
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,7 @@ public override void Configure(IProcessorConfig config)
{
_config = (TestPlansAndSuitesMigrationConfig)config;


var nodeStructureOptions =
_engineConfig.CommonEnrichersConfig.OfType<TfsNodeStructureOptions>().FirstOrDefault()
?? throw new InvalidOperationException("Cannot use common node structure because it is not found.");
_nodeStructureEnricher.Configure(nodeStructureOptions);
PullCommonEnrichersConfig<TfsNodeStructure, TfsNodeStructureOptions>(_engineConfig.CommonEnrichersConfig, _nodeStructureEnricher);

}

Expand Down

0 comments on commit bfc89d1

Please sign in to comment.