File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 338
338
# send a random string to the container. This will cause the container
339
339
# to output the string to its logs, then exit.
340
340
teststring=$( random_string 30)
341
- echo " $teststring " | nc 127.0.0.1 $port_out
341
+ echo " $teststring " > /dev/tcp/ 127.0.0.1/ $port_out
342
342
343
343
# Confirm that the container log output is the string we sent it.
344
344
run_podman wait $cid
Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ load helpers.network
153
153
154
154
# emit random string, and check it
155
155
teststring=$( random_string 30)
156
- echo " $teststring " | nc 127.0.0.1 $myport
156
+ echo " $teststring " > /dev/tcp/ 127.0.0.1/ $myport
157
157
158
158
run_podman logs $cid
159
159
# Sigh. We can't check line-by-line, because 'nc' output order is
@@ -296,7 +296,7 @@ load helpers.network
296
296
297
297
# emit random string, and check it
298
298
teststring=$( random_string 30)
299
- echo " $teststring " | nc 127.0.0.1 $myport
299
+ echo " $teststring " > /dev/tcp/ 127.0.0.1/ $myport
300
300
301
301
run_podman logs $cid
302
302
# Sigh. We can't check line-by-line, because 'nc' output order is
Original file line number Diff line number Diff line change @@ -423,7 +423,7 @@ function wait_for_port() {
423
423
function tcp_port_probe() {
424
424
local address=" ${2:- 0.0.0.0} "
425
425
426
- : | nc " ${ address} " " ${1} "
426
+ (exec echo -n > /dev/tcp/ " $ address/ $1 " ) > /dev/null 2>&1
427
427
}
428
428
429
429
# ## Pasta Helpers ##############################################################
You can’t perform that action at this time.
0 commit comments