aboutsummaryrefslogtreecommitdiffstats
path: root/test/functional/cases
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-07-15 11:21:06 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-07-15 11:21:06 +0100
commit2dfa54a5c532eebc2f921189b90fbcef7fac4d97 (patch)
tree262c0b4799428ce31e178c81ee954fce8b025c78 /test/functional/cases
parent263b3a525c6839e2e41a64b0918f930509d6497e (diff)
downloadrspamd-2dfa54a5c532eebc2f921189b90fbcef7fac4d97.tar.gz
rspamd-2dfa54a5c532eebc2f921189b90fbcef7fac4d97.zip
[Test] Sigh, poor-poor test
Diffstat (limited to 'test/functional/cases')
-rw-r--r--test/functional/cases/125_map_reload.robot6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/cases/125_map_reload.robot b/test/functional/cases/125_map_reload.robot
index d6708b942..2afaf2ab2 100644
--- a/test/functional/cases/125_map_reload.robot
+++ b/test/functional/cases/125_map_reload.robot
@@ -19,7 +19,9 @@ CHECK HIT AND MISS
WRITE NEW MAP
Sleep 1s Wait for new time
- Copy File ${MAP_FILE} ${MAP2}
+ ${TMP_FILE} = Make Temporary File
+ Copy File ${TESTDIR}/configs/maps/domains.list.2 ${TMP_FILE}
+ Move File ${TMP_FILE} ${MAP_FILE}
CHECK HIT AND MISS AFTER RELOAD
Sleep 1s Wait for map reload
@@ -29,13 +31,11 @@ CHECK HIT AND MISS AFTER RELOAD
*** Keywords ***
Map Reload Setup
${MAP1} = Get File ${TESTDIR}/configs/maps/domains.list
- ${MAP2} = Get File ${TESTDIR}/configs/maps/domains.list.2
${MAP_FILE} = Make Temporary File
${LUA_SCRIPT} = Make Temporary File
Set Suite Variable ${LUA_SCRIPT}
Set Suite Variable ${MAP_FILE}
Set Suite Variable ${MAP1}
- Set Suite Variable ${MAP2}
${lua} = Get File ${TESTDIR}/lua/mapreload.lua
${lua} = Replace Variables ${lua}
Create File ${LUA_SCRIPT} ${lua}