mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
Avoid false FAIL due to ncat not starting quickly enough
This commit is contained in:
parent
ae59c8dafd
commit
7aeb2ada62
1 changed files with 3 additions and 3 deletions
|
|
@ -1585,13 +1585,13 @@ sub {
|
|||
kill_children;
|
||||
}
|
||||
|
||||
($s_pid, $s_out, $s_in) = ncat("--broker");
|
||||
($s_pid, $s_out, $s_in) = ncat_server("--broker");
|
||||
test "IPV4 and IPV6 clients can talk to each other in broker mode",
|
||||
sub {
|
||||
my $resp;
|
||||
sleep 1;
|
||||
my ($c1_pid, $c1_out, $c1_in) = ncat("-6","::1");
|
||||
my ($c2_pid, $c2_out, $c2_in) = ncat("localhost");
|
||||
my ($c1_pid, $c1_out, $c1_in) = ncat_client("-6");
|
||||
my ($c2_pid, $c2_out, $c2_in) = ncat_client("-4");
|
||||
|
||||
syswrite($c2_in, "abc\n");
|
||||
$resp = timeout_read($c1_out, 2);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue