From bfc89d197676e7cbf6182b920b08320514369371 Mon Sep 17 00:00:00 2001 From: "Martin Hinshelwood nkdAgility.com" Date: Fri, 15 Mar 2024 17:08:33 +0000 Subject: [PATCH] [preview] Updated Test Plans and Suits to use the new safe Common Enricher method (#1984) Updated Test Plans and Suits to use the new safe common enricher import to fix #1983 --- .../MigrationContext/TestPlansAndSuitesMigrationContext.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/VstsSyncMigrator.Core/Execution/MigrationContext/TestPlansAndSuitesMigrationContext.cs b/src/VstsSyncMigrator.Core/Execution/MigrationContext/TestPlansAndSuitesMigrationContext.cs index 17e559dc7..c3ff9e526 100644 --- a/src/VstsSyncMigrator.Core/Execution/MigrationContext/TestPlansAndSuitesMigrationContext.cs +++ b/src/VstsSyncMigrator.Core/Execution/MigrationContext/TestPlansAndSuitesMigrationContext.cs @@ -75,11 +75,7 @@ public override void Configure(IProcessorConfig config) { _config = (TestPlansAndSuitesMigrationConfig)config; - - var nodeStructureOptions = - _engineConfig.CommonEnrichersConfig.OfType().FirstOrDefault() - ?? throw new InvalidOperationException("Cannot use common node structure because it is not found."); - _nodeStructureEnricher.Configure(nodeStructureOptions); + PullCommonEnrichersConfig(_engineConfig.CommonEnrichersConfig, _nodeStructureEnricher); }