diff --git a/acceptance/tests/agent/fallback_to_cached_catalog.rb b/acceptance/tests/agent/fallback_to_cached_catalog.rb index 68ca87b94..ae6b2024d 100644 --- a/acceptance/tests/agent/fallback_to_cached_catalog.rb +++ b/acceptance/tests/agent/fallback_to_cached_catalog.rb @@ -1,16 +1,18 @@ test_name "fallback to the cached catalog" step "run agents once to cache the catalog" do with_puppet_running_on master, {} do on(agents, puppet("agent -t --server #{master}")) end end step "run agents again, verify they use cached catalog" do agents.each do |agent| # can't use --test, because that will set usecacheonfailure=false - on(agent, puppet("agent --onetime --no-daemonize --server #{master} --verbose")) do |result| + # We use a server that the agent can't possibly talk to in order + # to guarantee that no communication can take place. + on(agent, puppet("agent --onetime --no-daemonize --server puppet.example.com --verbose")) do |result| assert_match(/Using cached catalog/, result.stdout) end end end