From: Marcin Siodelski Date: Wed, 2 Nov 2016 14:28:18 +0000 (+0100) Subject: [github31] Slightly longer intervals in LFC timer tests. X-Git-Tag: trac5057_base~9^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e0efe5d7e143eff6739650b75dd16e2748049048;p=thirdparty%2Fkea.git [github31] Slightly longer intervals in LFC timer tests. This is to make sure that the server doesn't run LFC twice before it is reconfigured. --- diff --git a/src/bin/dhcp4/tests/dhcp4_process_tests.sh.in b/src/bin/dhcp4/tests/dhcp4_process_tests.sh.in index 34d2766023..0fab7f40da 100644 --- a/src/bin/dhcp4/tests/dhcp4_process_tests.sh.in +++ b/src/bin/dhcp4/tests/dhcp4_process_tests.sh.in @@ -283,7 +283,7 @@ lfc_timer_test() { cleanup # Create a configuration with the LFC enabled, by replacing the section # with the lfc-interval and persist parameters. - LFC_CONFIG=$(printf "${CONFIG}" | sed -e 's/\"lfc-interval\": 0/\"lfc-interval\": 1/g' \ + LFC_CONFIG=$(printf "${CONFIG}" | sed -e 's/\"lfc-interval\": 0/\"lfc-interval\": 3/g' \ | sed -e 's/\"persist\": false/\"persist\": true/g') # Create new configuration file. create_config "${LFC_CONFIG}" @@ -318,7 +318,7 @@ lfc_timer_test() { sleep 1 # Modify the interval. - LFC_CONFIG=$(printf "${LFC_CONFIG}" | sed -e 's/\"lfc-interval\": 1/\"lfc-interval\": 2/g') + LFC_CONFIG=$(printf "${LFC_CONFIG}" | sed -e 's/\"lfc-interval\": 3/\"lfc-interval\": 4/g') # Create new configuration file. create_config "${LFC_CONFIG}" diff --git a/src/bin/dhcp6/tests/dhcp6_process_tests.sh.in b/src/bin/dhcp6/tests/dhcp6_process_tests.sh.in index 4bd19e55f5..03cc4edde1 100644 --- a/src/bin/dhcp6/tests/dhcp6_process_tests.sh.in +++ b/src/bin/dhcp6/tests/dhcp6_process_tests.sh.in @@ -286,7 +286,7 @@ lfc_timer_test() { cleanup # Create a configuration with the LFC enabled, by replacing the section # with the lfc-interval and persist parameters. - LFC_CONFIG=$(printf "${CONFIG}" | sed -e 's/\"lfc-interval\": 0/\"lfc-interval\": 1/g' \ + LFC_CONFIG=$(printf "${CONFIG}" | sed -e 's/\"lfc-interval\": 0/\"lfc-interval\": 3/g' \ | sed -e 's/\"persist\": false,/\"persist\": true,/g') # Create new configuration file. create_config "${LFC_CONFIG}" @@ -321,7 +321,7 @@ lfc_timer_test() { sleep 1 # Modify the interval. - LFC_CONFIG=$(printf "${LFC_CONFIG}" | sed -e 's/\"lfc-interval\": 1/\"lfc-interval\": 2/g') + LFC_CONFIG=$(printf "${LFC_CONFIG}" | sed -e 's/\"lfc-interval\": 3/\"lfc-interval\": 4/g') # Create new configuration file. create_config "${LFC_CONFIG}"