Skip to content

Commit

Permalink
fix: Update test spec to set ['chrony']['servers'] attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
pa-jberanek committed Feb 7, 2024
1 parent 4599b78 commit 3cf0825
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions spec/unit/recipes/client_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
require 'spec_helper'

describe 'chrony::client' do
default_attributes['chrony']['servers'] = { 'pool.ntp.org' => 'iburst' }
context 'on Ubuntu 18.04' do
cached(:chef_run) do
ChefSpec::ServerRunner.new(platform: 'ubuntu', version: '18.04').converge(described_recipe)
Expand Down
1 change: 1 addition & 0 deletions spec/unit/recipes/master_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
require 'spec_helper'

describe 'chrony::master' do
default_attributes['chrony']['servers'] = { 'pool.ntp.org' => 'iburst' }
context 'on Ubuntu 18.04' do
cached(:chef_run) do
ChefSpec::ServerRunner.new(platform: 'ubuntu', version: '18.04').converge(described_recipe)
Expand Down

0 comments on commit 3cf0825

Please sign in to comment.