smalltalk
/
osmo-st-sip
Archived
1
0
Fork 0

test: Remember the right collection

When executing multiple tests we might not have the collection we
want anymore. Some tests don't stop all the timers so we have a
retransmit and this would cause an exception and log spam.
This commit is contained in:
Holger Hans Peter Freyther 2015-07-24 14:03:15 +02:00
parent d1e8b2dcd5
commit 57e67cac55
3 changed files with 9 additions and 3 deletions

View File

@ -126,9 +126,11 @@ TestCase subclass: SIPCallAgentTest [
]
setUp [
| localSent |
sent := OrderedCollection new.
localSent := sent.
transport := SIPTransportMock new
onData: [:datagram | sent add: datagram];
onData: [:datagram | localSent add: datagram];
yourself.
agent := SIPUserAgent createOn: transport.
agent

View File

@ -70,9 +70,11 @@ TestCase subclass: SIPInviteTest [
]
setUp [
| localSent |
sent := OrderedCollection new.
localSent := sent.
transport := SIPTransportMock new
onData: [:datagram | sent add: datagram];
onData: [:datagram | localSent add: datagram];
yourself.
agent := SIPUserAgent createOn: transport.
agent

View File

@ -53,9 +53,11 @@ TestCase subclass: SIPRegisterTransactionTest [
]
setUp [
| localSent |
sent := OrderedCollection new.
localSent := sent.
transport := SIPTransportMock new
onData: [:datagram | sent add: datagram];
onData: [:datagram | localSent add: datagram];
yourself.
agent := SIPUserAgent createOn: transport.
agent