0001-t-30-get.t-Skip-on-NO_NETWORK_TESTING.patch (740B)
- From 7febf73579ce693ac60ecb88f93627a8bfe0e26f Mon Sep 17 00:00:00 2001
- From: "Haelwenn (lanodan) Monnier" <contact@hacktivis.me>
- Date: Sat, 14 Oct 2023 19:33:19 +0200
- Subject: [PATCH 1/2] t/30-get.t: Skip on NO_NETWORK_TESTING
- ---
- t/30-get.t | 5 +++++
- 1 file changed, 5 insertions(+)
- diff --git a/t/30-get.t b/t/30-get.t
- index c638953..1afec30 100644
- --- a/t/30-get.t
- +++ b/t/30-get.t
- @@ -8,6 +8,11 @@ use Test::Warnings;
- use Net::CVE;
- +if ($ENV{NO_NETWORK_TESTING}) {
- + print "1..0 # SKIP Live tests disabled due to NO_NETWORK_TESTING\n";
- + exit 0;
- + }
- +
- ok (my $c1 = Net::CVE->new, "New reporter");
- ok ($c1->get ("CVE-2022-26928"), "Read report with prefix");
- ok (my $d1 = $c1->data, "Generate data");
- --
- 2.41.0