blob: e4ca24b5930f200ce263016331e528cf33c6003f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
Upstream-Status: Pending
Index: git/test/helpers.bash
===================================================================
--- git.orig/test/helpers.bash
+++ git/test/helpers.bash
@@ -645,7 +645,7 @@
fi
nsenter -n -t "${CONTAINER_NS_PIDS[$container_ns]}" timeout --foreground -v --kill=10 5 \
- nc $nc_common_args -l -p $container_port &>"$NETAVARK_TMPDIR/nc-out" <&$stdin &
+ ncat $nc_common_args -l -p $container_port &>"$NETAVARK_TMPDIR/nc-out" <&$stdin &
# make sure to wait until port is bound otherwise test can flake
# https://github.com/containers/netavark/issues/433
@@ -658,7 +658,7 @@
fi
data=$(random_string)
- run_in_host_netns nc $nc_common_args $connect_ip $host_port <<<"$data"
+ run_in_host_netns ncat $nc_common_args $connect_ip $host_port <<<"$data"
got=$(cat "$NETAVARK_TMPDIR/nc-out")
assert "$got" == "$data" "ncat received data"
|