File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
spec/octocatalog-diff/tests Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 9595 OctocatalogDiff ::Cli . cli ( default_argv , logger , opts )
9696 end . to raise_error ( ArgumentError , /additional_argv must be array/ )
9797 end
98+
99+ it 'should run in parallel when multiple hostnames are given' do
100+ # Under rspec the parallel gem collides with octocatalog-diff's parallel execution
101+ # implementation, so work around by disabling octocatalog-diff's parallel execution
102+ # just for this one test.
103+ opts = { additional_argv : %w( --hostname octonode1.rspec,octonode2.rspec --no-parallel ) }
104+ logger , logger_str = OctocatalogDiff ::Spec . setup_logger
105+ result = OctocatalogDiff ::Cli . cli ( default_argv , logger , opts )
106+ expect ( result ) . to eq ( 0 )
107+ expect ( logger_str . string ) . to match ( /Catalogs compiled for octonode1.rspec/ )
108+ expect ( logger_str . string ) . to match ( /Catalogs compiled for octonode2.rspec/ )
109+ end
98110 end
99111
100112 context 'with cached master directory specified' do
You can’t perform that action at this time.
0 commit comments