diff --git a/spec/support/shared/examples/msf/module_manager/cache.rb b/spec/support/shared/examples/msf/module_manager/cache.rb index 798c9c99b2..ab293818bd 100644 --- a/spec/support/shared/examples/msf/module_manager/cache.rb +++ b/spec/support/shared/examples/msf/module_manager/cache.rb @@ -1,4 +1,10 @@ RSpec.shared_examples_for 'Msf::ModuleManager::Cache' do + + # Wait for data to be loaded + before(:all) do + Msf::Modules::Metadata::Cache.instance.get_metadata + end + let(:parent_path) do parent_pathname.to_path end