From 99fdcaf6b719f7dcd53f117acc937cb2fbd4c12c Mon Sep 17 00:00:00 2001 From: Ricardo Signes Date: Thu, 6 Feb 2025 11:14:32 +1100 Subject: [PATCH] tests: reenable network-listening tests under GitHub Actions These tests can sit listening forever unless terminated. The problem (I believe) is that yath was meant to catch a term signal, but it's running as pid 1, which has special rules. We need to put an init in the way, to we have added "--init" to the container options in the underlying dzil-action action. --- t/dates.t | 4 ---- t/httpendpoint.t | 4 ---- t/https.t | 4 ---- t/httpserver.t | 4 ---- t/page.t | 4 ---- t/prometheus.t | 4 ---- 6 files changed, 24 deletions(-) diff --git a/t/dates.t b/t/dates.t index f3409cf8..07239e6c 100644 --- a/t/dates.t +++ b/t/dates.t @@ -6,10 +6,6 @@ use lib 'lib', 't/lib'; use Test::More; -if ($ENV{GITHUB_ACTION}) { - plan skip_all => "test fails under GitHub Actions at present"; -} - use Synergy::Logger::Test '$Logger'; use IO::Async::Loop; diff --git a/t/httpendpoint.t b/t/httpendpoint.t index ff97bef5..63bc6957 100644 --- a/t/httpendpoint.t +++ b/t/httpendpoint.t @@ -5,10 +5,6 @@ use lib 't/lib'; use Test::More; -if ($ENV{GITHUB_ACTION}) { - plan skip_all => "test fails under GitHub Actions at present"; -} - use Synergy::Logger::Test '$Logger'; use Net::Async::HTTP; diff --git a/t/https.t b/t/https.t index d42a4c68..b351ee1d 100644 --- a/t/https.t +++ b/t/https.t @@ -5,10 +5,6 @@ use lib 't/lib'; use Test::More; -if ($ENV{GITHUB_ACTION}) { - plan skip_all => "test fails under GitHub Actions at present"; -} - use Synergy::Logger::Test '$Logger'; use IO::Async::Loop; diff --git a/t/httpserver.t b/t/httpserver.t index 92de034a..389a1954 100644 --- a/t/httpserver.t +++ b/t/httpserver.t @@ -5,10 +5,6 @@ use lib 't/lib'; use Test::More; -if ($ENV{GITHUB_ACTION}) { - plan skip_all => "test fails under GitHub Actions at present"; -} - use Synergy::Logger::Test '$Logger'; use IO::Async::Loop; diff --git a/t/page.t b/t/page.t index 920ba10a..d7b01f8d 100644 --- a/t/page.t +++ b/t/page.t @@ -5,10 +5,6 @@ use lib 't/lib'; use Test::More; -if ($ENV{GITHUB_ACTION}) { - plan skip_all => "test fails under GitHub Actions at present"; -} - use Synergy::Logger::Test '$Logger'; use IO::Async::Loop; diff --git a/t/prometheus.t b/t/prometheus.t index ab5cae24..56e534bd 100644 --- a/t/prometheus.t +++ b/t/prometheus.t @@ -5,10 +5,6 @@ use lib 't/lib'; use Test::More; -if ($ENV{GITHUB_ACTION}) { - plan skip_all => "test fails under GitHub Actions at present"; -} - use Synergy::Logger::Test '$Logger'; use IO::Async::Loop;