diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-09-19 18:04:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-19 18:04:38 +0100 |
commit | adb5066f9193fdd86f903f42a54d91b70b74d739 (patch) | |
tree | 0a874f9b99b034b2a5fc0d3ad59b61cc359097d7 /test | |
parent | e5d49b802e4fc788071b9ced04b37bf49fc112c4 (diff) | |
parent | 90e1a1f4ea71fdc2f74ea13af03e8dee3c0ff31b (diff) | |
download | rspamd-adb5066f9193fdd86f903f42a54d91b70b74d739.tar.gz rspamd-adb5066f9193fdd86f903f42a54d91b70b74d739.zip |
Merge pull request #2503 from negram/test-update
[Test] Rewrote test using new assertion
Diffstat (limited to 'test')
-rw-r--r-- | test/lua/unit/lua_util.extract_specific_urls.lua | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/lua/unit/lua_util.extract_specific_urls.lua b/test/lua/unit/lua_util.extract_specific_urls.lua index 9c8e4e187..1eaa88187 100644 --- a/test/lua/unit/lua_util.extract_specific_urls.lua +++ b/test/lua/unit/lua_util.extract_specific_urls.lua @@ -110,8 +110,7 @@ context("Lua util - extract_specific_urls", function() local s = logger.slog("%1 =?= %2", c.expect, actual_result) print(s) --]] - assert_equal(true, util.table_cmp(c.expect, actual_result), "checking that we got the same tables") - + assert_rspamd_table_eq({actual = actual_result, expect = c.expect}) end) test("extract_specific_urls " .. i, function() @@ -132,8 +131,7 @@ context("Lua util - extract_specific_urls", function() local s = logger.slog("case[%1] %2 =?= %3", i, c.expect, actual_result) print(s) --]] - assert_equal(true, util.table_cmp(c.expect, actual_result), "checking that we got the same tables") - + assert_rspamd_table_eq({actual = actual_result, expect = c.expect}) end) end |