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:
parent
d1e8b2dcd5
commit
57e67cac55
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Reference in New Issue