[sr-dev] git:master:d848d133: test/unit: 19.sh - remove usrloc record by ruid

Daniel-Constantin Mierla miconda at gmail.com
Sun Nov 19 09:12:00 CET 2017


Module: kamailio
Branch: master
Commit: d848d133301bead7a6e3d9b3e6f3ffa2329fd825
URL: https://github.com/kamailio/kamailio/commit/d848d133301bead7a6e3d9b3e6f3ffa2329fd825

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2017-11-19T08:55:43+01:00

test/unit: 19.sh - remove usrloc record by ruid

---

Modified: test/unit/19.sh

---

Diff:  https://github.com/kamailio/kamailio/commit/d848d133301bead7a6e3d9b3e6f3ffa2329fd825.diff
Patch: https://github.com/kamailio/kamailio/commit/d848d133301bead7a6e3d9b3e6f3ffa2329fd825.patch

---

diff --git a/test/unit/19.sh b/test/unit/19.sh
index 8815aa07f5..f9bd07b09b 100755
--- a/test/unit/19.sh
+++ b/test/unit/19.sh
@@ -34,6 +34,7 @@ UAC=5080
 
 
 # add an registrar entry to the db;
+$MYSQL "DELETE FROM location WHERE ruid=\"kamailio-unit-uid\""
 $MYSQL "INSERT INTO location (ruid,username,contact,socket,user_agent,cseq,q) VALUES (\"kamailio-unit-uid\", \"foo\",\"sip:foo at localhost:$UAS\",\"udp:127.0.0.1:$UAS\",\"kamailio_test\",1,-1);"
 
 $BIN -L $MOD_DIR -Y $RUN_DIR -P $PIDFILE -w . -f $CFG -a no > /dev/null
@@ -46,5 +47,5 @@ ret=$?
 killall -9 sipp > /dev/null 2>&1
 kill_kamailio
 
-$MYSQL "DELETE FROM location WHERE ((contact = \"sip:foo at localhost:$UAS\") and (user_agent = \"kamailio_test\"));"
+$MYSQL "DELETE FROM location WHERE ruid=\"kamailio-unit-uid\""
 exit $ret;




More information about the sr-dev mailing list