diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-10-22 16:32:06 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-10-22 16:32:06 +0100 |
commit | 3a93b559ebfcaf2bb03fa6792e9f3ee971cd6e3d (patch) | |
tree | be251dcde8211454f26586d6d722fdd9effe7cb8 /test/functional | |
parent | ff1f29cc7270742b8c1a24b8c72e4f3e9ba2b820 (diff) | |
download | rspamd-3a93b559ebfcaf2bb03fa6792e9f3ee971cd6e3d.tar.gz rspamd-3a93b559ebfcaf2bb03fa6792e9f3ee971cd6e3d.zip |
[Test] Fix neural tests
Diffstat (limited to 'test/functional')
-rw-r--r-- | test/functional/cases/330_neural.robot | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/test/functional/cases/330_neural.robot b/test/functional/cases/330_neural.robot index 5751ee60f..19170e80d 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"]} |