From: Vsevolod Stakhov Date: Tue, 22 Oct 2019 15:32:06 +0000 (+0100) Subject: [Test] Fix neural tests X-Git-Tag: 2.1~44 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3a93b559ebfcaf2bb03fa6792e9f3ee971cd6e3d;p=thirdparty%2Frspamd.git [Test] Fix neural tests --- diff --git a/test/functional/cases/330_neural.robot b/test/functional/cases/330_neural.robot index 5751ee60fb..19170e80d9 100644 --- a/test/functional/cases/330_neural.robot +++ b/test/functional/cases/330_neural.robot @@ -14,14 +14,11 @@ ${REDIS_SCOPE} Suite ${RSPAMD_SCOPE} Suite *** Test Cases *** -Train Spam +Train Sleep 2s Wait for redis mess : FOR ${INDEX} IN RANGE 0 10 \ ${result} = Scan Message With Rspamc ${MESSAGE} --header Settings={symbols_enabled = ["SPAM_SYMBOL"]} \ Check Rspamc ${result} SPAM_SYMBOL (1.00) - -Train Ham - : FOR ${INDEX} IN RANGE 0 10 \ ${result} = Scan Message With Rspamc ${MESSAGE} --header Settings={symbols_enabled = ["HAM_SYMBOL"]} \ Check Rspamc ${result} HAM_SYMBOL (-1.00) @@ -37,17 +34,13 @@ Check Neural SPAM Check Rspamc ${result} NEURAL_HAM_SHORT inverse=1 -Train Spam INVERSE +Train INVERSE : FOR ${INDEX} IN RANGE 0 10 \ ${result} = Scan Message With Rspamc ${MESSAGE} --header Settings={symbols_enabled = ["SPAM_SYMBOL"]; SPAM_SYMBOL = -1} \ Check Rspamc ${result} SPAM_SYMBOL (-1.00) - -Train Ham INVERSE - : FOR ${INDEX} IN RANGE 0 10 \ ${result} = Scan Message With Rspamc ${MESSAGE} --header Settings={symbols_enabled = ["HAM_SYMBOL"]; HAM_SYMBOL = 1;} \ Check Rspamc ${result} HAM_SYMBOL (1.00) - Check Neural HAM INVERSE Sleep 2s Wait for neural to be loaded ${result} = Scan Message With Rspamc ${MESSAGE} --header Settings={symbols_enabled = ["HAM_SYMBOL"];groups_enabled=["neural"]}