commit 4735fd1: [Test] Fix CH migration tests

Vsevolod Stakhov vsevolod at highsecure.ru
Tue Apr 16 11:07:03 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-04-16 12:04:25 +0100
URL: https://github.com/rspamd/rspamd/commit/4735fd1a285a8d34327adc063ef4b272a32fa5df (HEAD -> master)

[Test] Fix CH migration tests

---
 test/functional/cases/210_clickhouse/clickhouse.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/functional/cases/210_clickhouse/clickhouse.py b/test/functional/cases/210_clickhouse/clickhouse.py
index c2d0b5fa5..e30e78320 100644
--- a/test/functional/cases/210_clickhouse/clickhouse.py
+++ b/test/functional/cases/210_clickhouse/clickhouse.py
@@ -66,7 +66,7 @@ def schema_version_should_be(version):
     sql = "select max(Version) as version from rspamd_version"
     r = client().query(sql)
     logger.info("response: %s" % str(r))
-    if r[0]['version'] != 3:
+    if r[0]['version'] != int(version):
         raise Exception("Failed asseting that schema version is '%d'" % r[0]['version'])
 
 


More information about the Commits mailing list