Skip to content

Commit 751840a

Browse files
committed
cat /de/urandom blocks bats tests
1 parent 9a160bc commit 751840a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/tests.bats

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ setup() {
2222
sudo ip netns exec SouthNS ping -c 2 1.1.1.1
2323

2424
# Create file with random data
25-
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 128 | head -n 1 > /tmp/test_short.log
26-
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 8128 | head -n 1 > /tmp/test_long.log
25+
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | head -c 128 | head -n 1 > /tmp/test_short.log
26+
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | head -c 8128 | head -n 1 > /tmp/test_long.log
2727
}
2828

2929
teardown() {

0 commit comments

Comments
 (0)