From 692e2e4fa537e1b05a1bc60b03d5c96cfec9f6b8 Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Mon, 21 Mar 2022 20:18:01 -0700 Subject: allow test to run on ruby 3.1 Signed-off-by: Lamont Granquist --- spec/data/rubygems.org/sexp_processor-info | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec') diff --git a/spec/data/rubygems.org/sexp_processor-info b/spec/data/rubygems.org/sexp_processor-info index 78add7f2fa..a37139f592 100644 --- a/spec/data/rubygems.org/sexp_processor-info +++ b/spec/data/rubygems.org/sexp_processor-info @@ -46,4 +46,4 @@ 4.14.0 |checksum:99a20cc5e7b901f6b493a8ca5e13439b73b19671eaaca68a00216c4f66765edc 4.14.1 |checksum:0fa8731445cf4a0c01570ec29aac4b50a0451ce66b1b31ad768f5035e3af7b90,ruby:~> 2.2 4.15.0 |checksum:a5ec27d8055ad47444cfb7ce860bad8af2365772a82892f4a8a0d97e8e9e3b34,ruby:~> 2.2 -4.15.1 |checksum:9291a0f2247f50d15068ee6965b67cd7b678b0d273e18adf3c0b2ea4a890125c,ruby:< 3.1&>= 2.1 +4.15.1 |checksum:9291a0f2247f50d15068ee6965b67cd7b678b0d273e18adf3c0b2ea4a890125c,ruby:>= 2.1 -- cgit v1.2.1 From 5e1179214e3bafbf225decea29db23598d4b336b Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Mon, 21 Mar 2022 20:18:18 -0700 Subject: remove useless test this is testing ruby responding to a kill TERM not testing chef-client at all. Signed-off-by: Lamont Granquist --- spec/unit/application/client_spec.rb | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'spec') diff --git a/spec/unit/application/client_spec.rb b/spec/unit/application/client_spec.rb index 6977e4f108..06eb591b62 100644 --- a/spec/unit/application/client_spec.rb +++ b/spec/unit/application/client_spec.rb @@ -564,16 +564,6 @@ describe Chef::Application::Client, "run_application", :unix_only do expect(IO.select([@pipe[0]], nil, nil, 0)).not_to be_nil expect(@pipe[0].gets).to eq("finished\n") end - - it "should exit hard when sent before converge" do - pid = fork do - sleep 3 - @app.run_application - end - Process.kill("TERM", pid) - _pid, result = Process.waitpid2(pid) - expect(result.exitstatus).to eq(3) - end end end -- cgit v1.2.1