Skip to content

Commit ef757e0

Browse files
committed
rebase: apply review feedback on #47
1 parent 63c21a9 commit ef757e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/03-test_connectivity.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ BEGIN {
44
use Test::More;
55

66
plan skip_all => "\$ENV{AUTHOR_TESTING} required for these tests" if(!$ENV{AUTHOR_TESTING});
7+
plan skip_all => "t/test_config.cfg required for connectivity tests" if(! -f 't/test_config.cfg');
78
}
89

910
use Net::Jabber::Bot;
@@ -15,8 +16,7 @@ plan tests => 7;
1516
# Load config file (simple INI parser, replaces Config::Std).
1617
my $config_file = 't/test_config.cfg';
1718
my %config_file_hash;
18-
{
19-
open my $fh, '<', $config_file or die "Can't open $config_file: $!";
19+
if (open my $fh, '<', $config_file) {
2020
my $section = '';
2121
while (my $line = <$fh>) {
2222
chomp $line;

0 commit comments

Comments
 (0)