Răsfoiți Sursa

test/unit Update p_usrloc test (it executes correctly now and performs cleaning)

Marius Zbihlei 14 ani în urmă
părinte
comite
80bd3fa9d4
2 a modificat fișierele cu 4 adăugiri și 5 ștergeri
  1. 1 1
      test/unit/50.cfg
  2. 3 4
      test/unit/50.sh

+ 1 - 1
test/unit/50.cfg

@@ -31,7 +31,7 @@ modparam("p_usrloc", "alg_location", 1)
 modparam("p_usrloc", "reg_db_table", "locdb")
 
 loadmodule "registrar"
-modparam("registrar", "min_expires", 5)
+modparam("registrar", "min_expires", 60)
 modparam("p_usrloc", "timer_interval", 2)
 
 #-------------------------  request routing logic -------------------

+ 3 - 4
test/unit/50.sh

@@ -40,9 +40,9 @@ sleep 1
 
 # register two contacts
 echo "adding new contacts"
-sipsak -U -C sip:foobar@localhost -s sip:49721123456789@localhost -H localhost &> /dev/null
-sipsak -U -C sip:foobar1@localhost -s sip:49721123456789@localhost -H localhost &> /dev/null
-sipsak -U -C sip:foobar2@localhost -s sip:49721123456790@localhost -H localhost &> /dev/null
+sipsak -U -C sip:foobar@localhost -s sip:49721123456789@localhost -H localhost -x 30 &> /dev/null
+sipsak -U -C sip:foobar1@localhost -s sip:49721123456789@localhost -H localhost -x 30 &> /dev/null
+sipsak -U -C sip:foobar2@localhost -s sip:49721123456790@localhost -H localhost -x 30 &> /dev/null
 ret=$?
 
 if [ ! "$ret" -eq 0 ]; then
@@ -71,7 +71,6 @@ if [ "$ret" -eq 0 ]; then
 	fi;
 fi;
 
-
 if [ "$ret" -eq 0 ]; then
 	echo "check if the contact is registered"
 	sipsak -U -C empty -s sip:[email protected] -H localhost -q "Contact: <sip:foobar@localhost>" #&> /dev/null