Skip to content

Commit 001d070

Browse files
committed
add sanitization for enrichment tables in config tests
1 parent 22bd2ae commit 001d070

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/config/unit_test/mod.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,13 @@ async fn build_unit_test(
448448
.filter(|(key, _)| valid_components.contains(&key.to_string()))
449449
.collect();
450450

451+
// Remove all enrichment tables that are not relevant to the current test
452+
config_builder.enrichment_tables = config_builder
453+
.enrichment_tables
454+
.into_iter()
455+
.filter(|(key, _)| valid_components.contains(&key.to_string()))
456+
.collect();
457+
451458
// Sanitize the inputs of all relevant transforms
452459
let graph = Graph::new_unchecked(
453460
&config_builder.sources,

0 commit comments

Comments
 (0)