From 868bbe342db9cd5cf2c5d3d7e1725dcb4ace470d Mon Sep 17 00:00:00 2001 From: Joshua Hoblitt Date: Fri, 13 Sep 2024 17:36:45 -0700 Subject: [PATCH] fix acceptance test random failures --- spec/acceptance/init_spec.rb | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/spec/acceptance/init_spec.rb b/spec/acceptance/init_spec.rb index 6c54af8..c70a451 100644 --- a/spec/acceptance/init_spec.rb +++ b/spec/acceptance/init_spec.rb @@ -26,7 +26,7 @@ its(['HostConfig.NetworkMode']) { is_expected.to eq 'host' } its(['Mounts']) do - is_expected.to match([include('Source' => '/home')]) + is_expected.to contain_exactly(a_hash_including('Source' => '/home')) end end @@ -56,10 +56,7 @@ its(['HostConfig.NetworkMode']) { is_expected.to eq 'host' } its(['Mounts']) do - is_expected.to match([ - include('Source' => '/home'), - include('Source' => '/opt'), - ]) + is_expected.to contain_exactly(a_hash_including('Source' => '/home'), a_hash_including('Source' => '/opt')) end end