summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/2-nodes-hicn-light.yml4
-rwxr-xr-xtests/config.sh4
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/2-nodes-hicn-light.yml b/tests/2-nodes-hicn-light.yml
index be715e333..e86bbc7ee 100644
--- a/tests/2-nodes-hicn-light.yml
+++ b/tests/2-nodes-hicn-light.yml
@@ -16,7 +16,7 @@ services:
sudo ip route add 192.168.1.2 via 192.168.1.1 dev br0
tee -a /tmp/hicn-light.conf <<EOF
add listener udp local0 192.168.1.1 9199 br0
- add connection udp conn0 192.168.1.2 9199 192.168.1.1 9199
+ add connection udp conn0 192.168.1.1 9199 192.168.1.2 9199
add route conn0 b002::/64 1
EOF
@@ -45,7 +45,7 @@ services:
tee -a /tmp/hicn-light.conf <<EOF
add listener udp local0 192.168.1.2 9199 br0
- add connection udp conn0 192.168.1.1 9199 192.168.1.2 9199
+ add connection udp conn0 192.168.1.2 9199 192.168.1.1 9199
add route conn0 b002::/64 1
EOF
diff --git a/tests/config.sh b/tests/config.sh
index 1420ef49e..b10d11204 100755
--- a/tests/config.sh
+++ b/tests/config.sh
@@ -358,7 +358,7 @@ function test_connections() {
_=$(exec_command "${command}")
command="add connection udp $CONN_NAME $ADDRESS 9695 $ADDRESS 9695 $INTERFACE"
_=$(exec_command "${command}")
- command="add connection udp $CONN_NAME_2 $ADDRESS 12345 $ADDRESS 9695 $INTERFACE"
+ command="add connection udp $CONN_NAME_2 $ADDRESS 9695 $ADDRESS 12345 $INTERFACE"
assert_cmd_success "${command}"
echo -n "List connections: "
@@ -395,7 +395,7 @@ function test_connections() {
echo -n "Add duplicated connection (same symbolic): "
command="add connection udp $CONN_NAME $ADDRESS 9695 $ADDRESS 9695 $INTERFACE"
_=$(exec_command "${command}")
- command="add connection udp $CONN_NAME $ADDRESS 9695 $ADDRESS 12345 $INTERFACE"
+ command="add connection udp $CONN_NAME $ADDRESS 12345 $ADDRESS 9695 $INTERFACE"
assert_cmd_failure "${command}"
# This case is allowed, success code is returned and symbolic is not updated