Skip to content

Commit fc6da77

Browse files
committed
Reordered prints of the tests
1 parent 19c317f commit fc6da77

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

test/simple-answer.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ proxy=$!
88
sleep 1
99
dd if=/dev/urandom of=/tmp/answer bs=1M count=1 2>/dev/null
1010
cat /tmp/answer | nc localhost 8800
11+
EXPECTED_SUM=$(cat /tmp/answer | md5sum )
1112

1213
SUM="$(cat /tmp/reply-hash)"
13-
echo -e "Gotten: \t $SUM"
14-
EXPECTED_SUM=$(cat /tmp/answer | md5sum )
1514
echo -e "Expected: \t $EXPECTED_SUM"
15+
echo -e "Gotten: \t $SUM"
1616

1717
kill $proxy || true
1818

test/simple-reply.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22

33
dd if=/dev/urandom of=/tmp/reply bs=1M count=1 2>/dev/null
44
cat /tmp/reply | nc -w 5 -l -p 8811 &
5+
EXPECTED_SUM=$(cat /tmp/reply | md5sum )
56

67
"$1" -hosting "localhost:8800" -forward "localhost:8811" &
78
proxy=$!
89

910
sleep 1
1011
SUM=$( nc localhost 8800 | md5sum)
1112

12-
echo -e "Gotten: \t $SUM"
13-
EXPECTED_SUM=$(cat /tmp/reply | md5sum )
1413
echo -e "Expected: \t $EXPECTED_SUM"
14+
echo -e "Gotten: \t $SUM"
1515

1616
kill $proxy || true
1717

0 commit comments

Comments
 (0)