From c99bacfc0490cc424c370530c0e7748417308891 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 7 Dec 2023 22:33:55 +0000 Subject: [PATCH] Fix cgimap tests to check for unix domain socket --- test/integration/web-cgimap/inspec/cgimap_spec.rb | 5 ++--- test/integration/web-frontend/inspec/cgimap_spec.rb | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/test/integration/web-cgimap/inspec/cgimap_spec.rb b/test/integration/web-cgimap/inspec/cgimap_spec.rb index 8c9b5ce24..2d3953465 100644 --- a/test/integration/web-cgimap/inspec/cgimap_spec.rb +++ b/test/integration/web-cgimap/inspec/cgimap_spec.rb @@ -3,7 +3,6 @@ describe service("cgimap") do it { should be_running } end -describe port(8000) do - it { should be_listening } - its("protocols") { should cmp "tcp" } +describe file("/run/cgimap/socket") do + it { should be_socket } end diff --git a/test/integration/web-frontend/inspec/cgimap_spec.rb b/test/integration/web-frontend/inspec/cgimap_spec.rb index 8c9b5ce24..2d3953465 100644 --- a/test/integration/web-frontend/inspec/cgimap_spec.rb +++ b/test/integration/web-frontend/inspec/cgimap_spec.rb @@ -3,7 +3,6 @@ describe service("cgimap") do it { should be_running } end -describe port(8000) do - it { should be_listening } - its("protocols") { should cmp "tcp" } +describe file("/run/cgimap/socket") do + it { should be_socket } end -- 2.45.1