commit 2dfa54a: [Test] Sigh, poor-poor test

Vsevolod Stakhov vsevolod at highsecure.ru
Mon Jul 15 10:28:05 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-07-15 11:21:06 +0100
URL: https://github.com/rspamd/rspamd/commit/2dfa54a5c532eebc2f921189b90fbcef7fac4d97 (HEAD -> master)

[Test] Sigh, poor-poor test

---
 test/functional/cases/125_map_reload.robot | 6 +++---
 1 file 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}


More information about the Commits mailing list