summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Xu <alex_y_xu@yahoo.ca>2016-07-02 19:12:23 -0400
committerAlex Xu <alex_y_xu@yahoo.ca>2016-07-02 19:12:23 -0400
commit61e60c05097d7def8643a5a66bb6bc26229494a7 (patch)
tree70363e3e04c2a6857688a403f415d6ee3e675270
parent301746a0bbc8098050b7fc0028a6ec8a18b27d1d (diff)
downloadudpastcp-61e60c05097d7def8643a5a66bb6bc26229494a7.tar.xz
udpastcp-61e60c05097d7def8643a5a66bb6bc26229494a7.zip
Make timing of test less sensitive.
-rwxr-xr-xtest.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/test.sh b/test.sh
index e14512b..c0668fb 100755
--- a/test.sh
+++ b/test.sh
@@ -8,12 +8,12 @@ test1() {
./udpastcp client localhost 36563 localhost 64109 &
pids="$!"
./udpastcp server localhost 64109 localhost 41465 &
- pids+=" $!"
- ( ( sleep 0.2; echo BBBBBBBB; ) | socat udp6-listen:41465 - ) &
- pids+=" $!"
- ( ( sleep 0.1; echo AAAAAAAA; ) | socat - 'udp-connect:[::1]:36563' ) &
- pids+=" $!"
- sleep 0.3
+ pids="$pids $!"
+ ( ( sleep 0.4; echo BBBBBBBB; ) | socat udp6-listen:41465 - ) &
+ pids="$pids $!"
+ ( ( sleep 0.2; echo AAAAAAAA; ) | socat - 'udp-connect:[::1]:36563' ) &
+ pids="$pids $!"
+ sleep 0.5
)
}