Skip to content

Commit

Permalink
had_no_warnings caused double test in older versions
Browse files Browse the repository at this point in the history
One extra test was accounted for in older versions of Test::More+Test::NoWarnings. Replaced without test counting.
  • Loading branch information
stdweird authored and jrha committed Sep 11, 2024
1 parent 9608464 commit f5f3e24
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/test/perl/compare_profiles.t
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/perl
use strict;
use warnings;
use Test::More tests => 12;
use Test::More;
use Test::NoWarnings;
use Test::Quattor qw(profile1 profile2);
use CDISPD::Utils;
Expand Down Expand Up @@ -67,3 +67,4 @@ for (my $i=0; $i<$iclist_length; $i++) {

Test::NoWarnings::had_no_warnings();

done_testing();
3 changes: 2 additions & 1 deletion src/test/perl/is_active.t
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/perl
use strict;
use warnings;
use Test::More tests => 5;
use Test::More;
use Test::NoWarnings;
use Test::Quattor qw(profile1 broken_profile);
use CDISPD::Utils;
Expand Down Expand Up @@ -42,3 +42,4 @@ ok(!CDISPD::Utils::is_active($comp_config,$component), "Configuration module $co

Test::NoWarnings::had_no_warnings();

done_testing();

0 comments on commit f5f3e24

Please sign in to comment.