File: 53-fail-to-connect.t

package info (click to toggle)
libredis-fast-perl 0.22%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 488 kB
  • sloc: perl: 2,539; makefile: 3
file content (12 lines) | stat: -rw-r--r-- 230 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
use strict;
use warnings;
use Config;
use Test::More;
use Test::Fatal;
use Redis::Fast;

like exception {
    Redis::Fast->new(server => "localhost:0");
}, qr/could not connect to redis server/i, 'fail to connect';

done_testing;