Skip to content

Commit

Permalink
Init registry during create_test_environment
Browse files Browse the repository at this point in the history
Signed-off-by: Achal Shah <[email protected]>
  • Loading branch information
achals committed Sep 3, 2021
1 parent 9dc9e60 commit 89ad835
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@ def construct_test_environment(
repo_path=repo_dir_name,
)
fs = FeatureStore(config=config)
# We need to initialize the registry, because if nothing is applied in the test before tearing down
# the feature store, that will cause the teardown method to blow up.
fs.registry._initialize_registry()
environment = Environment(
name=project,
test_repo_config=test_repo_config,
Expand Down

0 comments on commit 89ad835

Please sign in to comment.