Comparison

tests/test_core_s2smanager.lua @ 5604:6df0ec991f2e

tests: Some much-needed cleanup...
author Matthew Wild <mwild1@gmail.com>
date Sat, 18 May 2013 17:14:30 +0100
parent 2923:b7049746bd29
child 5776:bd0ff8ae98a8
comparison
equal deleted inserted replaced
5603:e07f4f02e4f9 5604:6df0ec991f2e
4 -- 4 --
5 -- This project is MIT/X11 licensed. Please see the 5 -- This project is MIT/X11 licensed. Please see the
6 -- COPYING file in the source package for more information. 6 -- COPYING file in the source package for more information.
7 -- 7 --
8 8
9 env = {
10 prosody = { events = require "util.events".new() };
11 };
9 12
10 function compare_srv_priorities(csp) 13 function compare_srv_priorities(csp)
11 local r1 = { priority = 10, weight = 0 } 14 local r1 = { priority = 10, weight = 0 }
12 local r2 = { priority = 100, weight = 0 } 15 local r2 = { priority = 100, weight = 0 }
13 local r3 = { priority = 1000, weight = 2 } 16 local r3 = { priority = 1000, weight = 2 }