File: no_server.t

package info (click to toggle)
libtest-redisserver-perl 0.21-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 188 kB
  • sloc: perl: 171; makefile: 11; sh: 4
file content (16 lines) | stat: -rw-r--r-- 279 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use strict;
use warnings;
use Test::More;

use Test::RedisServer;

local $ENV{PATH} = '';

my $server;
eval {
    $server = Test::RedisServer->new;
};
ok !$server, 'server was not created ok';
like $@, qr/^exec failed: no such file or directory/m, 'error msg ok';

done_testing;