aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-02-25 17:54:23 +0000
committerMatthew Wild <mwild1@gmail.com>2010-02-25 17:54:23 +0000
commitcc932b9c970f5119b7a1ae08111814ff085b9f6d (patch)
tree70727e958282be14de90c56a02b4847f55b94b88 /tests
parentf713f780454c2a67e67d316447ad9a5da88e5731 (diff)
downloadprosody-cc932b9c970f5119b7a1ae08111814ff085b9f6d.tar.gz
prosody-cc932b9c970f5119b7a1ae08111814ff085b9f6d.zip
tests/test_core_s2smanager.lua: Fix to compare SRV weights correctly
Diffstat (limited to 'tests')
-rw-r--r--tests/test_core_s2smanager.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_core_s2smanager.lua b/tests/test_core_s2smanager.lua
index 8635ed24..6a7ebcd0 100644
--- a/tests/test_core_s2smanager.lua
+++ b/tests/test_core_s2smanager.lua
@@ -30,18 +30,18 @@ function compare_srv_priorities(csp)
assert_equal(csp(r3, r2), false);
assert_equal(csp(r3, r3), false);
assert_equal(csp(r3, r4), false);
- assert_equal(csp(r3, r5), true);
+ assert_equal(csp(r3, r5), false);
assert_equal(csp(r4, r1), false);
assert_equal(csp(r4, r2), false);
assert_equal(csp(r4, r3), false);
assert_equal(csp(r4, r4), false);
- assert_equal(csp(r4, r5), true);
+ assert_equal(csp(r4, r5), false);
assert_equal(csp(r5, r1), false);
assert_equal(csp(r5, r2), false);
- assert_equal(csp(r5, r3), false);
- assert_equal(csp(r5, r4), false);
+ assert_equal(csp(r5, r3), true);
+ assert_equal(csp(r5, r4), true);
assert_equal(csp(r5, r5), false);
end